diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-05-31 11:47:01 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-05-31 11:47:01 -0700 |
commit | 3dc9a18612d1e1525ede73b461942fa84c270539 (patch) | |
tree | 922bd0b03aad3ba5e67c78a1ae5f4132def8cd78 | |
parent | dc7107eb848a07471cf02089b39b55708427153e (diff) | |
download | syslinux-3dc9a18612d1e1525ede73b461942fa84c270539.tar.gz |
Fix problem where the command line would get truncated during edit
Fix a problem where, during edit, the command line would occationally lose
the last character.
-rw-r--r-- | com32/modules/menumain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/menumain.c b/com32/modules/menumain.c index 203ceec5..157597e1 100644 --- 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; |