aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ContractionState.cxx
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-18 11:58:19 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-18 11:58:19 +0300
commitde2ed1d4bfc55dcca30f74790a3b4f7931b08032 (patch)
tree756dc93a943b45564928fd2baa0a0f7e63441fba /src/ContractionState.cxx
parent85ea187540b421d3d99c91019ed484c70d9d1d1a (diff)
downloadscintilla-mirror-de2ed1d4bfc55dcca30f74790a3b4f7931b08032.tar.gz
disable automatic scrolling and choosing the X that caret sticks tosciteco-rel-5-3-4
* SciTECO needs to avoid automatic scrolling as an optimization. While this works partially by avoiding certain messages like SCI_GOTOPOS (in favor of SCI_SETEMPTYSELECTION), there aren't alternatives for all messages that scroll. For instance SCI_UNDO will always call EnsureCaretVisible(). Also, even if we could avoid all scrolling messages, there is no guarantee that will not suddenly and unexpectedly break in the future. * Instead, every scrolling is now disabled except for an explicit SCI_SCROLLCARET. SciTECO can therefore use the more intuitive messages like SCI_GOTOPOS. * SetLastXChosen() (choosing the X that caret sticks to) has been found to be a major slow down during UNDO and serves no purpose on SciTECO anyway - we have to implement such an algorithm at the SciTECO language level. We therefore simply disable SetLastXChosen().
Diffstat (limited to 'src/ContractionState.cxx')
0 files changed, 0 insertions, 0 deletions