diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 57e31ec81..a1e943c3b 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3303,7 +3303,7 @@ void scanToUrlEnd(const wchar_t *text, int textLen, int start, int* distance) break; case sFragment: - if (!isUrlTextChar(text [p])) + if (text [p] != '?' && !isUrlTextChar(text [p])) { *distance = p - start; return;