summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2019-11-02 17:44:32 -0400
committerJason Felice <jason.m.felice@gmail.com>2019-11-09 12:53:45 -0500
commit9692e491ac4268071f246c822eb217a1820a54cd (patch)
tree13e09de856548958deac44af3212948250e1ecb5 /src
parentc589f475a5b0ffc9e5325a84bb3ff3ca32ff0fe1 (diff)
Fix bad comparison when parsing OSI sequences
Diffstat (limited to 'src')
-rw-r--r--src/ncurses_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc
index 15417ff2..d5191eb8 100644
--- a/src/ncurses_ui.cc
+++ b/src/ncurses_ui.cc
@@ -638,7 +638,7 @@ Optional<Key> NCursesUI::get_next_key()
}
for (int count = 0; count < 16 and c >= 0x30 && c <= 0x3f; c = next_char())
{
- if ('0' <= 'c' and c <= '9')
+ if (isdigit(c))
params[count] = params[count] * 10 + c - '0';
else if (c == ';')
++count;