diff options
| author | Jason Felice <jason.m.felice@gmail.com> | 2019-11-02 17:44:32 -0400 |
|---|---|---|
| committer | Jason Felice <jason.m.felice@gmail.com> | 2019-11-09 12:53:45 -0500 |
| commit | 9692e491ac4268071f246c822eb217a1820a54cd (patch) | |
| tree | 13e09de856548958deac44af3212948250e1ecb5 /src | |
| parent | c589f475a5b0ffc9e5325a84bb3ff3ca32ff0fe1 (diff) | |
Fix bad comparison when parsing OSI sequences
Diffstat (limited to 'src')
| -rw-r--r-- | src/ncurses_ui.cc | 2 |
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; |
