mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.0.0077: wrong restored cursor position when switching window in autocmd
Problem: When switching window in autocmd the restored cursor position may
be wrong.
Solution: Do not restore the cursor if it was not set. (closes vim/vim#10775)
b03950fafa
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2962,7 +2962,6 @@ endfunc
|
|||||||
|
|
||||||
func Test_autocmd_SafeState()
|
func Test_autocmd_SafeState()
|
||||||
CheckRunVimInTerminal
|
CheckRunVimInTerminal
|
||||||
let g:test_is_flaky = 1
|
|
||||||
|
|
||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
let g:safe = 0
|
let g:safe = 0
|
||||||
|
Reference in New Issue
Block a user