edit: Fix delete word to update current position

This commit is contained in:
Jouni Malinen 2010-11-20 11:48:00 +02:00
parent e4f13f9256
commit 89eb6b774d

View file

@ -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();
} }