mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Make Text Editor word selector also consider underlines
This commit is contained in:
4
lib/external/imgui/source/TextEditor.cpp
vendored
4
lib/external/imgui/source/TextEditor.cpp
vendored
@@ -324,8 +324,8 @@ TextEditor::Coordinates TextEditor::FindWordStart(const Coordinates &aFrom) cons
|
||||
break;
|
||||
}
|
||||
|
||||
if (isalnum(cstart)) {
|
||||
if (!isalnum(c)) {
|
||||
if (isalnum(cstart) || cstart == '_') {
|
||||
if (!isalnum(c) && c != '_') {
|
||||
cindex++;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user