aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-05-31 15:43:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-05-31 15:43:49 -0700
commitf12b67b9b1870fca92fdd6ef12873934d8ac63de (patch)
tree433c9ba516a6fa49aff4bff91630f32e555c3177
parent3a5dee424e0f9659ff2fbf0fcd206a390c320b3e (diff)
downloadsyslinux-f12b67b9b1870fca92fdd6ef12873934d8ac63de.tar.gz
syslinux-f12b67b9b1870fca92fdd6ef12873934d8ac63de.tar.xz
syslinux-f12b67b9b1870fca92fdd6ef12873934d8ac63de.zip
Correct inverted handling of Ctrl-F
-rw-r--r--ui.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.inc b/ui.inc
index bb340849..d3575857 100644
--- a/ui.inc
+++ b/ui.inc
@@ -72,13 +72,13 @@ got_ascii: cmp al,7Fh ; <DEL> == <BS>
cmp di,command_line ; Space must not be first
je short get_char
enter_char: test byte [FuncFlag],1
- je ctrl_f ; Keystroke after <Ctrl-F>
+ jnz ctrl_f ; Keystroke after <Ctrl-F>
cmp di,max_cmd_len+command_line ; Check there's space
jnb short get_char
stosb ; Save it
call writechr ; Echo to screen
jmp short get_char
-not_ascii: mov byte [FuncFlag],0
+not_ascii:
cmp al,0Dh ; Enter
je command_done
cmp al,'F' & 1Fh ; <Ctrl-F>