mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-31 01:34:58 +02:00
[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:
parent
ad9fac22a3
commit
b363016497
@ -108,7 +108,7 @@ static bool isFile(generic_string path)
|
|||||||
static bool isAllowedBeforeDriveLetter(TCHAR c)
|
static bool isAllowedBeforeDriveLetter(TCHAR c)
|
||||||
{
|
{
|
||||||
locale loc;
|
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)
|
static bool getRawPath(generic_string input, generic_string &rawPath_out)
|
||||||
@ -173,7 +173,7 @@ void AutoCompletion::showPathCompletion()
|
|||||||
TCHAR buf[bufSize + 1];
|
TCHAR buf[bufSize + 1];
|
||||||
const int currentPos = _pEditView->execute(SCI_GETCURRENTPOS);
|
const int currentPos = _pEditView->execute(SCI_GETCURRENTPOS);
|
||||||
const int startPos = max(0, currentPos - bufSize);
|
const int startPos = max(0, currentPos - bufSize);
|
||||||
_pEditView->getGenericText(buf, bufSize, startPos, currentPos);
|
_pEditView->getGenericText(buf, bufSize + 1, startPos, currentPos);
|
||||||
currentLine = buf;
|
currentLine = buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user