proper ctrl+backspace

This commit is contained in:
b1ek 2023-03-17 16:38:28 +10:00
parent a9cf2a1d21
commit 513b4c9161
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 3 additions and 2 deletions

View File

@ -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;