From 141182d6c6c06ad56413b81a518ba9b777a0cbe0 Mon Sep 17 00:00:00 2001 From: Colin Kennedy Date: Mon, 25 Dec 2023 20:41:09 -0800 Subject: vim-patch:9.1.0147: Cannot keep a buffer focused in a window Problem: Cannot keep a buffer focused in a window (Amit Levy) Solution: Add the 'winfixbuf' window-local option (Colin Kennedy) fixes: vim/vim#6445 closes: vim/vim#13903 https://github.com/vim/vim/commit/215703563757a4464907ead6fb9edaeb7f430bea N/A patch: vim-patch:58f1e5c0893a --- 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 1318eda5eb..e2196f99ec 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -812,7 +812,7 @@ module.cmds = { }, { command = 'drop', - flags = bit.bor(FILES, CMDARG, NEEDARG, ARGOPT, TRLBAR), + flags = bit.bor(BANG, FILES, CMDARG, NEEDARG, ARGOPT, TRLBAR), addr_type = 'ADDR_NONE', func = 'ex_drop', }, -- cgit From 8886b1807c4c0fd96558f198e4fc8cf962a7cc5b Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 20 Apr 2024 09:06:49 -0700 Subject: refactor(lua): "module" => "M" #28426 Most of the codebase uses the `M` convention for Lua module. Update the last remaining cases. --- src/nvim/ex_cmds.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nvim/ex_cmds.lua') diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index e2196f99ec..520637f5b3 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -1,6 +1,6 @@ local bit = require 'bit' -local module = {} +local M = {} -- Description of the values below is contained in ex_cmds_defs.h file. -- "EX_" prefix is omitted. @@ -32,14 +32,14 @@ local FILES = bit.bor(XFILE, EXTRA) local WORD1 = bit.bor(EXTRA, NOSPC) local FILE1 = bit.bor(FILES, NOSPC) -module.flags = { +M.flags = { RANGE = RANGE, DFLALL = DFLALL, PREVIEW = PREVIEW, } -- The following table is described in ex_cmds_defs.h file. -module.cmds = { +M.cmds = { { command = 'append', flags = bit.bor(BANG, RANGE, ZEROR, TRLBAR, CMDWIN, LOCK_OK, MODIFY), @@ -3359,4 +3359,4 @@ module.cmds = { }, } -return module +return M -- cgit From f59db07cdc8f266c9d08f4c229326d471f2d62ac Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 30 Apr 2024 06:02:38 +0800 Subject: vim-patch:9.1.0381: cbuffer and similar commands don't accept a range (#28571) Problem: cbuffer and similar quickfix and locationlist commands don't accept a range, even so it is documented they should (ilan-schemoul, after 8.1.1241) Solution: Define ex commands with ADDR_LINES instead of ADDR_OTHER fixes: vim/vim#14638 closes: vim/vim#14657 https://github.com/vim/vim/commit/652c821366691a8bd5474766581090df0c742fa1 Co-authored-by: Christian Brabandt --- src/nvim/ex_cmds.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/nvim/ex_cmds.lua') diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 520637f5b3..c8574c805c 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -337,7 +337,7 @@ M.cmds = { { command = 'caddbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -373,7 +373,7 @@ M.cmds = { { command = 'cbuffer', flags = bit.bor(BANG, RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -459,7 +459,7 @@ M.cmds = { { command = 'cgetbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -1329,7 +1329,7 @@ M.cmds = { { command = 'laddbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -1353,7 +1353,7 @@ M.cmds = { { command = 'lbuffer', flags = bit.bor(BANG, RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { @@ -1451,7 +1451,7 @@ M.cmds = { { command = 'lgetbuffer', flags = bit.bor(RANGE, WORD1, TRLBAR), - addr_type = 'ADDR_OTHER', + addr_type = 'ADDR_LINES', func = 'ex_cbuffer', }, { -- cgit