From 36a6f0931ba8a927809d11e21886255be95b693c Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 23 Dec 2014 22:03:36 +0000 Subject: [PATCH] [BUG_FIXED] Prevent auto-insert of {} [] () "" and '' from inserting in column mode. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1314 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/NppNotification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index a91a87f4..258c8053 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -471,8 +471,8 @@ BOOL Notepad_plus::notify(SCNotification *notification) maintainIndentation(static_cast(notification->ch)); AutoCompletion * autoC = isFromPrimary?&_autoCompleteMain:&_autoCompleteSub; - - if (nppGui._matchedPairConf.hasAnyPairsPair()) + bool isColumnMode = _pEditView->execute(SCI_GETSELECTIONS) > 1; // Multi-Selection || Column mode) + if (nppGui._matchedPairConf.hasAnyPairsPair() && !isColumnMode) autoC->insertMatchedChars(notification->ch, nppGui._matchedPairConf); autoC->update(notification->ch);