Compare commits
No commits in common. "a24680debc4a1c89902b0747d64185e9a37cf85b" and "2641635b31287d67de2a8101e14621bdc1370375" have entirely different histories.
a24680debc
...
2641635b31
14
src/lib.rs
14
src/lib.rs
@ -532,16 +532,15 @@ pub mod shell {
|
|||||||
let hotcmd = &conf.hotkeys[&x].clone();
|
let hotcmd = &conf.hotkeys[&x].clone();
|
||||||
for c in hotcmd.chars() {
|
for c in hotcmd.chars() {
|
||||||
if c != '\n' {
|
if c != '\n' {
|
||||||
write_letter(&mut mycommand,
|
write_letter(&mut mycommand,
|
||||||
&mut current_pos,
|
&mut current_pos,
|
||||||
&mut max_pos,
|
&mut max_pos,
|
||||||
c);
|
c);
|
||||||
} else {
|
} else {
|
||||||
current_pos = 0;
|
current_pos = 0;
|
||||||
max_pos = 0;
|
max_pos = 0;
|
||||||
mycommand = transform_alias(&conf, mycommand);
|
|
||||||
run_cmd(&mut mycommand,
|
run_cmd(&mut mycommand,
|
||||||
&mut current_number,
|
&mut current_number,
|
||||||
&mut conf,
|
&mut conf,
|
||||||
&mut stdout);
|
&mut stdout);
|
||||||
}
|
}
|
||||||
@ -553,9 +552,8 @@ pub mod shell {
|
|||||||
append_prev_arg(&mut mycommand, &mut current_pos, &mut max_pos);
|
append_prev_arg(&mut mycommand, &mut current_pos, &mut max_pos);
|
||||||
},
|
},
|
||||||
'!' => {
|
'!' => {
|
||||||
let mut cmd = format!("\r\n-- ALIASES --> \r\n{:?}\r\n", conf.hotkeys);
|
let mut cmd = format!("echo -- ALIASES --> {:?}", conf.hotkeys);
|
||||||
cmd = cmd.replace(",", "\r\n");
|
run_cmd(&mut cmd, &mut current_number, &mut conf, &mut stdout);
|
||||||
write!(stdout, "{}", cmd);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_ => (),
|
_ => (),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user