From 8cf389baf24d662c59dfa24d406243c930e0657f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 11 Sep 2020 23:53:26 +0200 Subject: [PATCH] tokenizer: Switch to !iswblank instead of iswgraph Fixes #7328 --- src/tokenizer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 6c7f6700b..161cbf9ec 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -815,8 +815,8 @@ bool move_word_state_machine_t::consume_char_whitespace(wchar_t c) { switch (state) { case s_always_one: { consumed = true; // always consume the first character - // If it's a graphical char, only consume those from here. - if (iswgraph(c)) { + // If it's not whitespace, only consume those from here. + if (!iswblank(c)) { state = s_graph; } else { // If it's whitespace, keep consuming whitespace until the graphs. @@ -833,7 +833,7 @@ bool move_word_state_machine_t::consume_char_whitespace(wchar_t c) { break; } case s_graph: { - if (iswgraph(c)) { + if (!iswblank(c)) { consumed = true; // consumed printable non-space } else { state = s_end;