summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-28 22:26:54 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-28 22:26:54 +0200
commit9c4fefffb65a2ed9b4a5b0f1bde0da8f349470b5 (patch)
treef42e3bece7b33b3f135de3268fd68a331a7286ad /src/ex_cmds.h
parent86f100dc0922e83bead7bcd5fd2bb2abbf153f46 (diff)
patch 8.0.0688: cannot resize the window in a FileType autocommandv8.0.0688
Problem: Cannot resize the window in a FileType autocommand. (Ingo Karkat) Solution: Add the CMDWIN flag to :resize. (test by Ingo Karkat, closes #1804)
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 519cd0811e..02d5690dcc 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -51,7 +51,9 @@
#define BUFUNL 0x20000L /* accepts unlisted buffer too */
#define ARGOPT 0x40000L /* allow "++opt=val" argument */
#define SBOXOK 0x80000L /* allowed in the sandbox */
-#define CMDWIN 0x100000L /* allowed in cmdline window */
+#define CMDWIN 0x100000L /* allowed in cmdline window; when missing
+ * disallows editing another buffer when
+ * curbuf_lock is set */
#define MODIFY 0x200000L /* forbidden in non-'modifiable' buffer */
#define EXFLAGS 0x400000L /* allow flags after count in argument */
#define FILES (XFILE | EXTRA) /* multiple extra files allowed */
@@ -1176,7 +1178,7 @@ EX(CMD_registers, "registers", ex_display,
EXTRA|NOTRLCOM|TRLBAR|CMDWIN,
ADDR_LINES),
EX(CMD_resize, "resize", ex_resize,
- RANGE|NOTADR|TRLBAR|WORD1,
+ RANGE|NOTADR|TRLBAR|WORD1|CMDWIN,
ADDR_LINES),
EX(CMD_retab, "retab", ex_retab,
TRLBAR|RANGE|WHOLEFOLD|DFLALL|BANG|WORD1|CMDWIN|MODIFY,