aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorAndré Twupack <atwupack@mailbox.org>2014-09-22 20:46:28 +0200
committerAndré Twupack <atwupack@mailbox.org>2014-09-22 20:46:28 +0200
commit57d497c51b1159052cb53c9e4db0388626b35903 (patch)
treee6820e68dd1a78991031fdeae7744c5d5cf0e4bc /src/nvim/window.c
parent1c84a0e09093d728408024a6baa9967df596be54 (diff)
downloadrneovim-57d497c51b1159052cb53c9e4db0388626b35903.tar.gz
rneovim-57d497c51b1159052cb53c9e4db0388626b35903.tar.bz2
rneovim-57d497c51b1159052cb53c9e4db0388626b35903.zip
vim-patch:7.4.386
Problem: When splitting a window the changelist position is wrong. Solution: Copy the changelist position. (Jacob Niehus) https://code.google.com/p/vim/source/detail?r=v7-4-386
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index ebce53cdf4..5ed145573d 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -948,6 +948,9 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
p_wh = size;
}
+ // Keep same changelist position in new window.
+ wp->w_changelistidx = oldwin->w_changelistidx;
+
/*
* make the new window the current window
*/