From 11bc8107b0947c9b86ce27fd698730497312f65b Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 24 Jul 2025 20:19:53 +0200 Subject: [PATCH] Increase CURRENT_LINESTR variable length of run dialog Increase CURRENT_LINESTR variable length from (2048 - 1) to (16384 * 2 - 1). Fix #16840, close #16859 --- PowerEditor/src/NppBigSwitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 7bff1db9b..97efff836 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -1013,7 +1013,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa case NPPM_GETCURRENTWORD: case NPPM_GETCURRENTLINESTR: { - const int strSize = CURRENTWORD_MAXLENGTH; + const int strSize = FINDREPLACE_MAXLENGTH * 2; wchar_t str[strSize] = { '\0' }; wchar_t *pTchar = reinterpret_cast(lParam);