From 4bde0d4b532ab0cfeb97b5bcd28cc60a2b941fec Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 30 Dec 2023 03:53:47 +0100 Subject: [PATCH] Fix incorrect code ref: https://github.com/notepad-plus-plus/notepad-plus-plus/commit/8ae049afbcfa4d37ec5abd81e2df8bf92af1b7d0#r135905629 And also add new entries to tabContextMenu_example.xml --- .../ScintillaComponent/ScintillaEditView.cpp | 2 +- PowerEditor/src/tabContextMenu_example.xml | 95 ++++++++++--------- 2 files changed, 50 insertions(+), 47 deletions(-) diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index e8cad4139dfc..01a574c63492 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -561,7 +561,7 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa Sci_TextRangeFull tr; tr.chrg.cpMin = posStart; tr.chrg.cpMax = posEnd + 2; - if (tr.chrg.cpMax > static_cast(docLen)) + if (tr.chrg.cpMax > static_cast(docLen)) { tr.chrg.cpMax = docLen; } diff --git a/PowerEditor/src/tabContextMenu_example.xml b/PowerEditor/src/tabContextMenu_example.xml index 12d711c7f256..f9f9b39f7242 100644 --- a/PowerEditor/src/tabContextMenu_example.xml +++ b/PowerEditor/src/tabContextMenu_example.xml @@ -7,59 +7,62 @@ Please check "How to Customize the Context Menu" on: https://npp-user-manual.org/docs/config-files/#the-context-menu-tabcontextmenu-xml --> - - - + + + - - - - - + + + + + - - - - - - - - + + - - - - + + + + + - - + + + + - - + + - - - - - - - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + +