From 3b1eb3ba2aef2452a6fb95dc5d279e0a86c8649b Mon Sep 17 00:00:00 2001 From: Coises Date: Sun, 18 Feb 2024 15:07:46 -0700 Subject: [PATCH] Add a Scintilla call to clear what appears to be a cache from which Scintilla sometimes reads a stale value when executing SCI_CHOOSECARETX. --- src/ColumnsPlusPlus.cpp | 1 + src/ColumnsPlusPlus.rc | Bin 77236 -> 77244 bytes 2 files changed, 1 insertion(+) diff --git a/src/ColumnsPlusPlus.cpp b/src/ColumnsPlusPlus.cpp index 39e08e0..85f1def 100644 --- a/src/ColumnsPlusPlus.cpp +++ b/src/ColumnsPlusPlus.cpp @@ -147,6 +147,7 @@ void ColumnsPlusPlusData::setTabstops(DocumentData& dd, Scintilla::Line firstNee before = after; } } + sci.PointXFromPosition(0); // This appears to clear a cache from which Scintilla may read a stale value for ChooseCaretX sci.ChooseCaretX(); } diff --git a/src/ColumnsPlusPlus.rc b/src/ColumnsPlusPlus.rc index 602e93692614db7334a31f96f71d795c93a2d979..ff3ff843f199f2fbb5889f04a98eb0548e0e2386 100644 GIT binary patch delta 71 zcmdmTn`O^!mWC~iHOh>J(`$hQqv7`T%8Y-RnDrP8ryFWA>TbWG#<&H}6`#(