[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
This commit is contained in:
Don Ho 2014-12-23 22:03:36 +00:00
parent bf76a3f5ee
commit 36a6f0931b

View File

@ -471,8 +471,8 @@ BOOL Notepad_plus::notify(SCNotification *notification)
maintainIndentation(static_cast<TCHAR>(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);