From 9baaef786bf47419d6dd89a2089b24be7e63daf2 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 7 Feb 2022 23:17:07 +0100 Subject: [PATCH] Fix Path Completion not working regression Fix #11147 --- PowerEditor/src/ScintillaComponent/AutoCompletion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp b/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp index e8708e45d..e7cf9efc4 100644 --- a/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp +++ b/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp @@ -349,9 +349,9 @@ void AutoCompletion::showPathCompletion() // Get current line (at most MAX_PATH characters "backwards" from current caret). generic_string currentLine; { - const size_t bufSize = MAX_PATH; + const intptr_t bufSize = MAX_PATH; TCHAR buf[bufSize + 1]; - const size_t currentPos = _pEditView->execute(SCI_GETCURRENTPOS); + const intptr_t currentPos = _pEditView->execute(SCI_GETCURRENTPOS); const auto startPos = max(0, currentPos - bufSize); _pEditView->getGenericText(buf, bufSize + 1, startPos, currentPos); currentLine = buf;