We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b37142d commit 78dfcb5Copy full SHA for 78dfcb5
1 file changed
TextEditor.cpp
@@ -6245,7 +6245,7 @@ bool TextEditor::CodePoint::isWhiteSpace(ImWchar codepoint) {
6245
6246
bool TextEditor::CodePoint::isWord(ImWchar codepoint) {
6247
if (codepoint < 0x7f) {
6248
- return (static_cast<unsigned>((codepoint | 32) - 'a') < 26) || (static_cast<unsigned>(codepoint - '0') < 10);
+ return (static_cast<unsigned>((codepoint | 32) - 'a') < 26) || (static_cast<unsigned>(codepoint - '0') < 10) || codepoint == '_';
6249
6250
#if defined(IMGUI_USE_WCHAR32)
6251
} else if (codepoint >= 0x10000) {
0 commit comments