From aca736b766ee8781b9ea9e2cbf56ee92c2b1abd8 Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Sat, 2 Jan 2021 14:50:26 -0500 Subject: [PATCH] Fix logic bug in NPPM_SETLINENUMBERWIDTHMODE Fix #9338, close #9340 --- 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 90e4248a3..9419aa411 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -2126,7 +2126,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa case NPPM_SETLINENUMBERWIDTHMODE: { - if (lParam != LINENUMWIDTH_DYNAMIC || lParam != LINENUMWIDTH_CONSTANT) + if (lParam != LINENUMWIDTH_DYNAMIC && lParam != LINENUMWIDTH_CONSTANT) return FALSE; ScintillaViewParams &svp = const_cast(nppParam.getSVP());