projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77632ad
)
menu: fix Ctrl-W (word erase) when editing a command line
author
H. Peter Anvin
<hpa@zytor.com>
Fri, 14 Aug 2009 05:31:13 +0000
(22:31 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Fri, 14 Aug 2009 05:31:13 +0000
(22:31 -0700)
The Ctrl-W (word erase) key was broken: it would think the command
line got longer, not shorter, resulting in havoc.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/menu/menumain.c
patch
|
blob
|
history
diff --git
a/com32/menu/menumain.c
b/com32/menu/menumain.c
index
82f0018
..
5b568fe
100644
(file)
--- a/
com32/menu/menumain.c
+++ b/
com32/menu/menumain.c
@@
-527,7
+527,7
@@
static const char *edit_cmdline(const char *input, int top)
memmove(cmdline + cursor, cmdline + prevcursor,
len - prevcursor + 1);
- len -= (
cursor - prev
cursor);
+ len -= (
prevcursor -
cursor);
redraw = 1;
}
break;