Skip to content

Commit

Permalink
no autoc on multiselect
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince committed Nov 18, 2020
1 parent 65381b6 commit 2a04b86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions QuickText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,11 @@ void QuickText()
char sLangType[3];
char sLangTypeGlobal[3];

// cannot handle multiple selections
int sels = (int)::SendMessage( scintilla, SCI_GETSELECTIONS, 0, 0 );
if (sels > 1)
return;

// define 'text' for scintilla
SendMessage( scintilla, SCI_SETWORDCHARS, 0,
( LPARAM )allowedChars.c_str() );
Expand Down

0 comments on commit 2a04b86

Please sign in to comment.