Commit dbb073b
committed
fix(pick): more carefully restore cursor when setting current window
Details:
- Plain "cache cursor -> set current window -> restore cursor" can fail
if setting current window leads to changing the buffer it displays
(cached cursor becomes outdated as it is for the other buffer).
One example is 'mini.files' default explorer: it automatically
switches to the alternative buffer on (second) `BufEnter` in the
buffer for directory path.
- No additional test, since the code path is for Neovim<0.10 which is
planned to be removed soon-ish.
Resolve #22751 parent ca9adcf commit dbb073b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3623 | 3623 | | |
3624 | 3624 | | |
3625 | 3625 | | |
3626 | | - | |
| 3626 | + | |
3627 | 3627 | | |
3628 | | - | |
| 3628 | + | |
3629 | 3629 | | |
3630 | 3630 | | |
3631 | 3631 | | |
| |||
0 commit comments