From f2bfef672d786c08117e84c8054bcbebd3ffd92f Mon Sep 17 00:00:00 2001 From: Derick Payne Date: Sun, 18 Jan 2026 02:21:30 +0200 Subject: [PATCH] chore(scintilla): apply remaining 5.5.8 change to SetSelectionFromSerialized Changed InvalidateStyleRedraw() to Redraw() in SetSelectionFromSerialized to match Scintilla 5.5.8 upstream. Note: ListBox.cxx was already at 5.5.8 parity (opaque colors, ItemHeight bitmap). --- scintilla/np3_patches/upstream_558/README.md | 1 + scintilla/src/Editor.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scintilla/np3_patches/upstream_558/README.md b/scintilla/np3_patches/upstream_558/README.md index 601890099..75c661846 100644 --- a/scintilla/np3_patches/upstream_558/README.md +++ b/scintilla/np3_patches/upstream_558/README.md @@ -22,6 +22,7 @@ All beneficial changes from Scintilla 5.5.8 have been applied to NP3's 5.5.7 bas | `CaseConvert.cxx` | Unicode 16 case folding table updates | | `CellBuffer.cxx` | `is_convertible_v` type check + `type_traits` include | | `EditView.cxx` | Bidi data bounds check fix | +| `Editor.cxx` | `SetSelectionFromSerialized` uses `Redraw()` instead of `InvalidateStyleRedraw()` | > [!NOTE] > `PositionCache.cxx/h` was NOT updated - has `noexcept` specification changes diff --git a/scintilla/src/Editor.cxx b/scintilla/src/Editor.cxx index 8ba3ddc54..5c9ea5e6e 100644 --- a/scintilla/src/Editor.cxx +++ b/scintilla/src/Editor.cxx @@ -718,7 +718,7 @@ void Editor::SetSelectionFromSerialized(const char *serialized) { sel = Selection(serialized); sel.Truncate(pdoc->Length()); SetRectangularRange(); - InvalidateStyleRedraw(); + Redraw(); // Scintilla 5.5.8: Changed from InvalidateStyleRedraw() } }