Currently, the change list index gets reset to zero (oldest change) in a new
split window, so typing 'g;' gives an error. I think the index should either
get set to the newest change (as if opening a new buffer) or to the same as the
window it's split from. I think the latter is more useful, so I implemented
that.
diff --git a/src/window.c b/src/window.c
--- a/src/window.c
+++ b/src/window.c
@@ -1178,6 +1178,11 @@
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
*/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/window.c b/src/window.c
--- a/src/window.c
+++ b/src/window.c
@@ -1178,6 +1178,11 @@
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
*/