Hi,
I'm experiencing a reproducible crash in vim when using nerdtree.
I start vim, open a file with nerdtree, hide the tree with nerdtreetoggle and
open a split window. This leads to either an infinite loop or a crash in this
portion of window.c:4080
for (wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next)
if (wp == win)
return tp;
vim still uses the nerdtree window as the firstwin even though it has been
removed. I'm currently using this workaround:
--- a/src/window.c Mon Jul 01 22:03:04 2013 +0200
+++ b/src/window.c Tue Jul 02 12:19:14 2013 +0200
@@ -4651,15 +4651,18 @@
{
if (wp->w_prev != NULL)
wp->w_prev->w_next = wp->w_next;
- else if (tp == NULL)
+ else if (tp == NULL) {
firstwin = wp->w_next;
+ curtab->tp_firstwin = firstwin;
+ }
else
tp->tp_firstwin = wp->w_next;
if (wp->w_next != NULL)
wp->w_next->w_prev = wp->w_prev;
- else if (tp == NULL)
+ else if (tp == NULL) {
lastwin = wp->w_prev;
- else
+ curtab->tp_lastwin = lastwin;
+ } else
tp->tp_lastwin = wp->w_prev;
}
I hope that is information is useful.
Kind regards,
raichoo
--
--
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/groups/opt_out.