From 33eb5833b2baefce3797f4544bc1567d0c23c9e7 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 25 Jun 2018 19:42:55 -0400 Subject: 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) https://github.com/vim/vim/commit/9c4fefffb65a2ed9b4a5b0f1bde0da8f349470b5 --- src/nvim/ex_cmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ex_cmds.lua') diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 31776a70e7..df1aa938ed 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -2158,7 +2158,7 @@ return { }, { command='resize', - flags=bit.bor(RANGE, NOTADR, TRLBAR, WORD1), + flags=bit.bor(RANGE, NOTADR, TRLBAR, WORD1, CMDWIN), addr_type=ADDR_LINES, func='ex_resize', }, -- cgit