From eec33332b7ccf32d7ef3daecd8914cbad2ed66fb Mon Sep 17 00:00:00 2001 From: Coises Date: Sat, 17 Feb 2024 12:15:47 -0700 Subject: [PATCH] Send SCI_CHOOSECARETX at the end of setTabstops to assure moving cursor up or down starts from the correct horizontal position. (Fixes Issue #18.) --- CHANGELOG.md | 4 ++++ src/ColumnsPlusPlus.cpp | 1 + src/ColumnsPlusPlus.rc | Bin 77236 -> 77236 bytes 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 582426e..a9f08fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Columns++ for Notepad++ -- Releases +## Version 1.0.3 -- February 17th, 2024 + +* Fixed an omission that can cause odd cursor positioning when pressing arrow up or down immediately after inserting a tab when elastic tabstops is enabled. + ## Version 1.0.2 -- January 4th, 2024 * **All users of versions 0.8 through 1.0.1 should update to this version as soon as possible.** This version fixes a serious bug in Search | Replace All/Before/After which can cause the entire application to hang (thus necessitating a force close of Notepad++ and loss of unsaved changes in all open tabs). diff --git a/src/ColumnsPlusPlus.cpp b/src/ColumnsPlusPlus.cpp index b8a46bd..39e08e0 100644 --- a/src/ColumnsPlusPlus.cpp +++ b/src/ColumnsPlusPlus.cpp @@ -147,6 +147,7 @@ void ColumnsPlusPlusData::setTabstops(DocumentData& dd, Scintilla::Line firstNee before = after; } } + sci.ChooseCaretX(); } diff --git a/src/ColumnsPlusPlus.rc b/src/ColumnsPlusPlus.rc index 53027ff663287578c645590f949fe191c0c5ea59..602e93692614db7334a31f96f71d795c93a2d979 100644 GIT binary patch delta 67 zcmdmTn`O&wmWC~i70Qgp(<_x34H=EMuU2OK&jjQeYBK6>zoEvs3CaA0OTDM6#xJL delta 67 zcmdmTn`O&wmWC~i70Qf8(<_x34H=ELuU2OK&jjQeYBK6>zoEvs3CaA0ONBM5dZ)H