From b36301649769001d9d6b869d8736261fbc763786 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 20 Nov 2013 10:50:10 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Andreas Jonsson) Fix bug in path auto-completion. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1151 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/AutoCompletion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/AutoCompletion.cpp b/PowerEditor/src/ScitillaComponent/AutoCompletion.cpp index e081d45ef..99a08f89a 100644 --- a/PowerEditor/src/ScitillaComponent/AutoCompletion.cpp +++ b/PowerEditor/src/ScitillaComponent/AutoCompletion.cpp @@ -108,7 +108,7 @@ static bool isFile(generic_string path) static bool isAllowedBeforeDriveLetter(TCHAR c) { locale loc; - return c == '\'' || c == '"' || std::isspace(c, loc); + return c == '\'' || c == '"' || c == '(' || std::isspace(c, loc); } static bool getRawPath(generic_string input, generic_string &rawPath_out) @@ -173,7 +173,7 @@ void AutoCompletion::showPathCompletion() TCHAR buf[bufSize + 1]; const int currentPos = _pEditView->execute(SCI_GETCURRENTPOS); const int startPos = max(0, currentPos - bufSize); - _pEditView->getGenericText(buf, bufSize, startPos, currentPos); + _pEditView->getGenericText(buf, bufSize + 1, startPos, currentPos); currentLine = buf; }