Skip to content

Commit 2ed48ce

Browse files
committed
GUI - teach editor a better set of word chars
* Means that navigating forward and backwards across words works for keywords such as :foo :-)
1 parent b33c26a commit 2ed48ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/gui/qt/sonicpiscintilla.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ SonicPiScintilla::SonicPiScintilla(SonicPiLexer *lexer)
141141
addKeyBinding(settings, QsciCommand::SelectionCopy, Qt::Key_C | SPi_META);
142142
addOtherKeyBinding(settings, QsciCommand::SelectionCopy, Qt::Key_C | SPi_CTRL);
143143

144+
SendScintilla(SCI_SETWORDCHARS, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:_?!");
145+
146+
144147
}
145148

146149
void SonicPiScintilla::hideLineNumbers(){

0 commit comments

Comments
 (0)