vim-patch:8.0.0688: cannot resize the window in a FileType autocommand

Problem:    Cannot resize the window in a FileType autocommand. (Ingo Karkat)
Solution:   Add the CMDWIN flag to :resize. (test by Ingo Karkat,
            closes vim/vim#1804)
9c4fefffb6
This commit is contained in:
Jan Edmund Lazo
2018-06-25 19:42:55 -04:00
parent bfe029a11d
commit 33eb5833b2
3 changed files with 33 additions and 14 deletions

View File

@@ -59,7 +59,9 @@
#define BUFUNL 0x20000 /* accepts unlisted buffer too */
#define ARGOPT 0x40000 /* allow "++opt=val" argument */
#define SBOXOK 0x80000 /* allowed in the sandbox */
#define CMDWIN 0x100000 /* allowed in cmdline window */
#define CMDWIN 0x100000 /* allowed in cmdline window; when missing
* disallows editing another buffer when
* curbuf_lock is set */
#define MODIFY 0x200000 /* forbidden in non-'modifiable' buffer */
#define EXFLAGS 0x400000 /* allow flags after count in argument */
#define FILES (XFILE | EXTRA) /* multiple extra files allowed */