proper ctrl+backspace
This commit is contained in:
parent
a9cf2a1d21
commit
513b4c9161
|
@ -107,8 +107,9 @@ function reset_cmd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function cbackspace() {
|
function cbackspace() {
|
||||||
let exploded = cmd.split(' ');
|
let exploded = cmd.substring(0, cmd.length - 2).split(' ');
|
||||||
if (exploded.length >= 1) {
|
|
||||||
|
if (exploded.length == 1) {
|
||||||
reprint_prompt();
|
reprint_prompt();
|
||||||
cmd = '';
|
cmd = '';
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue