Skip to content

Commit c69d716

Browse files
committed
UI: completion includes non keywords
1 parent 3a8049f commit c69d716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/textedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ void TextEditHelpWidget::createCompletionHelp() {
15871587
const char *found = strstr(_editor->getText(), selection);
15881588
while (found != NULL) {
15891589
const char *end = found;
1590-
while (!IS_WHITE(*end) && *end != '\0') {
1590+
while (!IS_WHITE(*end) && !ispunct(*end) && *end != '\0') {
15911591
end++;
15921592
}
15931593
if (end - found > len) {

0 commit comments

Comments
 (0)