diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-25 22:22:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-25 22:22:01 +0200 |
commit | a68e59590905da9b4448ff1fcac929ad1a18da9e (patch) | |
tree | 34c79c9572424b3daf7d6be1d968d675c674cf10 /src/proto/window.pro | |
parent | a561a41a70db7a9367f883c1dbb14e69b3364d08 (diff) | |
download | vim-git-a68e59590905da9b4448ff1fcac929ad1a18da9e.tar.gz |
patch 8.1.1205: a BufReadPre autocommand may cause the cursor to movev8.1.1205
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)
Diffstat (limited to 'src/proto/window.pro')
-rw-r--r-- | src/proto/window.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/window.pro b/src/proto/window.pro index 5da322e28..b4ad98afb 100644 --- a/src/proto/window.pro +++ b/src/proto/window.pro @@ -70,6 +70,7 @@ int tabline_height(void); int min_rows(void); int only_one_window(void); void check_lnums(int do_curwin); +void reset_lnums(void); void make_snapshot(int idx); void restore_snapshot(int idx, int close_curwin); int switch_win(win_T **save_curwin, tabpage_T **save_curtab, win_T *win, tabpage_T *tp, int no_display); |