edit: Fix delete word to update current position
This commit is contained in:
parent
e4f13f9256
commit
89eb6b774d
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,8 @@ static void delete_word(void)
|
||||||
cmdbuf_len--;
|
cmdbuf_len--;
|
||||||
while (cmdbuf_len > 0 && cmdbuf[cmdbuf_len - 1] != ' ')
|
while (cmdbuf_len > 0 && cmdbuf[cmdbuf_len - 1] != ' ')
|
||||||
cmdbuf_len--;
|
cmdbuf_len--;
|
||||||
|
if (cmdbuf_pos > cmdbuf_len)
|
||||||
|
cmdbuf_pos = cmdbuf_len;
|
||||||
edit_redraw();
|
edit_redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue