From 2a04b8624705940850e990e02f44ca1218a662ad Mon Sep 17 00:00:00 2001 From: Vince Date: Wed, 18 Nov 2020 07:22:10 -0500 Subject: [PATCH] no autoc on multiselect --- QuickText.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/QuickText.cpp b/QuickText.cpp index 401ddea..c9c27d3 100644 --- a/QuickText.cpp +++ b/QuickText.cpp @@ -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() );