]> granicus.if.org Git - vim/commit
patch 9.0.0077: wrong restored cursor position when switching window in autocmd v9.0.0077
authorBram Moolenaar <Bram@vim.org>
Tue, 26 Jul 2022 12:47:13 +0000 (13:47 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 Jul 2022 12:47:13 +0000 (13:47 +0100)
commitb03950fafa07e8b8d975eeb345ad08b8b62e67ce
tree887d38e97a9249733cbf43b6a3178e45a0cae90a
parent92a1678d488b7d023ddf2cd493a6ee0d7fcf1928
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 #10775)
src/testdir/dumps/Test_autocmd_nested_switch.dump [new file with mode: 0644]
src/testdir/test_autocmd.vim
src/version.c
src/window.c