Skip to content

Commit

Permalink
Add a Scintilla call to clear what appears to be a cache from which S…
Browse files Browse the repository at this point in the history
…cintilla sometimes reads a stale value when executing SCI_CHOOSECARETX.
  • Loading branch information
Coises committed Feb 18, 2024
1 parent eec3333 commit 3b1eb3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ColumnsPlusPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Binary file modified src/ColumnsPlusPlus.rc
Binary file not shown.

0 comments on commit 3b1eb3b

Please sign in to comment.