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:
dc7107e
)
Fix problem where the command line would get truncated during edit
author
H. Peter Anvin
<hpa@zytor.com>
Thu, 31 May 2007 18:47:01 +0000
(11:47 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Thu, 31 May 2007 18:47:01 +0000
(11:47 -0700)
Fix a problem where, during edit, the command line would occationally lose
the last character.
com32/modules/menumain.c
patch
|
blob
|
history
diff --git
a/com32/modules/menumain.c
b/com32/modules/menumain.c
index
203ceec
..
157597e
100644
(file)
--- a/
com32/modules/menumain.c
+++ b/
com32/modules/menumain.c
@@
-476,7
+476,7
@@
edit_cmdline(char *input, int top)
if ( redraw > 0 ) {
/* Redraw the command line */
printf("\033[?25l\033[%d;1H\1#9> \2#10%s",
- CMDLINE_ROW, pad_line(cmdline, 0, prev_len));
+ CMDLINE_ROW, pad_line(cmdline, 0,
max(len,
prev_len));
printf("\2#10\033[%d;3H%s\033[?25h",
CMDLINE_ROW, pad_line(cmdline, 0, cursor));
prev_len = len;