]> granicus.if.org Git - vim/commit
patch 8.1.1205: a BufReadPre autocommand may cause the cursor to move v8.1.1205
authorBram Moolenaar <Bram@vim.org>
Thu, 25 Apr 2019 20:22:01 +0000 (22:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 25 Apr 2019 20:22:01 +0000 (22:22 +0200)
commita68e59590905da9b4448ff1fcac929ad1a18da9e
tree34c79c9572424b3daf7d6be1d968d675c674cf10
parenta561a41a70db7a9367f883c1dbb14e69b3364d08
patch 8.1.1205: a BufReadPre autocommand may cause the cursor to move

Problem:    A BufReadPre autocommand may cause the cursor to move.
Solution:   Restore the cursor position after executing the autocommand,
            unless the autocommand moved it. (Christian Brabandt,
            closes #4302, closes #4294)
src/autocmd.c
src/proto/window.pro
src/structs.h
src/testdir/test_autocmd.vim
src/version.c
src/window.c