aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-21 16:24:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-08-21 16:25:48 +0800
commit00ad0c81b6868ae5490668741be9a06d6a6627b0 (patch)
tree168678ff20543558b7639efad6452401b385de5b
parentbd9a9e63bc8d58beb5ab4b9564ba17b63f60200f (diff)
downloadrneovim-00ad0c81b6868ae5490668741be9a06d6a6627b0.tar.gz
rneovim-00ad0c81b6868ae5490668741be9a06d6a6627b0.tar.bz2
rneovim-00ad0c81b6868ae5490668741be9a06d6a6627b0.zip
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) https://github.com/vim/vim/commit/b03950fafa07e8b8d975eeb345ad08b8b62e67ce Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/test_autocmd.vim1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim
index 59149abaf7..0b532163d0 100644
--- a/test/old/testdir/test_autocmd.vim
+++ b/test/old/testdir/test_autocmd.vim
@@ -2962,7 +2962,6 @@ endfunc
func Test_autocmd_SafeState()
CheckRunVimInTerminal
- let g:test_is_flaky = 1
let lines =<< trim END
let g:safe = 0