impr: Make Text Editor word selector also consider underlines

This commit is contained in:
WerWolv
2023-02-15 17:12:16 +01:00
parent 3067ff08ec
commit 851f132188

View File

@@ -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;
}