[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
This commit is contained in:
Don Ho 2013-11-20 10:50:10 +00:00
parent ad9fac22a3
commit b363016497
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}