aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-09 10:19:00 +0800
committerGitHub <noreply@github.com>2023-03-09 10:19:00 +0800
commit89a525de9f2551e460cc91d40fd7afbb7e07622f (patch)
tree2e9bd543d89b693c7a6382fa66ec82488f8a0c61 /src/clint.py
parenteaccd0decd707ff7cec318e06914f963daa9574c (diff)
downloadrneovim-89a525de9f2551e460cc91d40fd7afbb7e07622f.tar.gz
rneovim-89a525de9f2551e460cc91d40fd7afbb7e07622f.tar.bz2
rneovim-89a525de9f2551e460cc91d40fd7afbb7e07622f.zip
fix(buffer_updates): save and restore current window cursor (#16732)
When a buffer update callback is called, textlock is active so buffer text cannot be changed, but cursor can still be moved. This can cause problems when the buffer update is in the middle of an operator, like the one mentioned in #16729. The solution is to save cursor position and restore it afterwards, like how cursor is saved and restored when evaluating an <expr> mapping.
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions