Skip to content

Commit ecf5f0a

Browse files
committed
UI: Fix editor markup on map fields that look like keywords
1 parent 0fe4225 commit ecf5f0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/textedit.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,8 @@ uint32_t TextEditInput::getHash(const char *str, int offs, int &count) {
11331133
// non keyword character
11341134
while (isalnum(ch) || ch == '.' || ch == '_') {
11351135
// skip any program variable characters
1136-
ch = str[offs + count++];
1136+
count++;
1137+
ch = str[offs + count];
11371138
}
11381139
break;
11391140
}

0 commit comments

Comments
 (0)