On Thu, May 24, 2012 at 10:14:41PM +0200, Christian Brabandt wrote: > > Attached patch fixes this issue.
> diff --git a/src/window.c b/src/window.c
> --- a/src/window.c
> +++ b/src/window.c
> @@ -2104,6 +2104,38 @@
> #endif
> }
>
> +int
> +close_last_window_tabpage(win, free_buf, prev_curtab)
> + win_T *win;
> + int free_buf;
> + tabpage_T *prev_curtab;
> +{
> + /*
> + * When closing the last window in a tab page first go to another tab
> + * page and then close the window and the tab page. This avoids that
> + * curwin and curtab are not invalid while we are freeing memory, they
> may
^^^
The "not" should be removed. You fixed this in the original version of
the comment, but not when you copied it here.
--
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
signature.asc
Description: Digital signature
