Mercurial > vim
comparison src/buffer.c @ 17516:711db62c8aca v8.1.1756
patch 8.1.1756: autocommand that splits window messes up window layout
commit https://github.com/vim/vim/commit/1417c766f55e5959b31da488417b7d9b141404af
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 27 17:31:36 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Jul 2019 17:45:06 +0200 |
parents | cfdef48743ed |
children | 97a750e8707f |
comparison
equal
deleted
inserted
replaced
17515:ea9798fcdb36 | 17516:711db62c8aca |
---|---|
5099 if (keep_tabs) | 5099 if (keep_tabs) |
5100 { | 5100 { |
5101 new_curwin = wpnext; | 5101 new_curwin = wpnext; |
5102 new_curtab = curtab; | 5102 new_curtab = curtab; |
5103 } | 5103 } |
5104 else if (wpnext->w_frame->fr_parent | |
5105 != curwin->w_frame->fr_parent) | |
5106 { | |
5107 emsg(_("E249: window layout changed unexpectedly")); | |
5108 i = count; | |
5109 break; | |
5110 } | |
5104 else | 5111 else |
5105 win_move_after(wpnext, curwin); | 5112 win_move_after(wpnext, curwin); |
5106 break; | 5113 break; |
5107 } | 5114 } |
5108 } | 5115 } |