diff src/window.c @ 6096:09af7cb358f0 v7.4.386

updated for version 7.4.386 Problem: When splitting a window the changelist position is wrong. Solution: Copy the changelist position. (Jacob Niehus)
author Bram Moolenaar <bram@vim.org>
date Wed, 30 Jul 2014 14:05:00 +0200
parents 255561411d7a
children 63121fdd093f
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -1178,6 +1178,11 @@ win_split_ins(size, flags, new_wp, dir)
 	    p_wh = size;
     }
 
+#ifdef FEAT_JUMPLIST
+    /* Keep same changelist position in new window. */
+    wp->w_changelistidx = oldwin->w_changelistidx;
+#endif
+
     /*
      * make the new window the current window
      */