mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.1756: autocommand that splits window messes up window layout
Problem: Autocommand that splits window messes up window layout. Solution: Disallow splitting a window while closing one. In ":all" give an error when moving a window will not work.
This commit is contained in:
@@ -5101,6 +5101,13 @@ do_arg_all(
|
||||
new_curwin = wpnext;
|
||||
new_curtab = curtab;
|
||||
}
|
||||
else if (wpnext->w_frame->fr_parent
|
||||
!= curwin->w_frame->fr_parent)
|
||||
{
|
||||
emsg(_("E249: window layout changed unexpectedly"));
|
||||
i = count;
|
||||
break;
|
||||
}
|
||||
else
|
||||
win_move_after(wpnext, curwin);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user