diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/window.c | 2 | ||||
-rw-r--r-- | src/nvim/ex_cmds.lua | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c index 08ecca1380..54a19513db 100644 --- a/src/nvim/api/window.c +++ b/src/nvim/api/window.c @@ -148,7 +148,7 @@ void nvim_win_set_cursor(Window window, ArrayOf(Integer, 2) pos, Error *err) switchwin_T switchwin; switch_win(&switchwin, win, NULL, true); update_topline(curwin); - setcursor_mayforce(true); + validate_cursor(curwin); restore_win(&switchwin, true); redraw_later(win, UPD_VALID); 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 |