diff --git a/src/command_manager.cc b/src/command_manager.cc index 64523b94..be2aa79e 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -205,7 +205,7 @@ Token parse_percent_token(Reader& reader) { ++reader; const auto type_start = reader.pos; - while (reader and isalpha(*reader)) + while (reader and iswalpha(*reader)) ++reader; StringView type_name = reader.substr_from(type_start); diff --git a/test/regression/1829-unicode-as-string-delimiter/cmd b/test/regression/1829-unicode-as-string-delimiter/cmd index c42d3140..a9658251 100644 --- a/test/regression/1829-unicode-as-string-delimiter/cmd +++ b/test/regression/1829-unicode-as-string-delimiter/cmd @@ -1 +1 @@ -:exec i %дabcд esc> +:exec i %•abc• esc>