From a4d48d37c15604a96be13eb4deaedbb132be6e10 Mon Sep 17 00:00:00 2001 From: Shane Smith Date: Fri, 13 Sep 2019 22:16:12 -0400 Subject: vim-patch:8.1.1256: cannot navigate through errors relative to the cursor Problem: Cannot navigate through errors relative to the cursor. Solution: Add :cabove, :cbelow, :labove and :lbelow. (Yegappan Lakshmanan, closes vim/vim#4316) https://github.com/vim/vim/commit/3ff33114d70fc0f7e9c3187c5fec9028f6499cf3 --- src/nvim/ex_cmds.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/nvim/ex_cmds.lua') diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 6317ec77ff..f7aa8a994a 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -322,6 +322,12 @@ return { addr_type=ADDR_LINES, func='ex_abclear', }, + { + command='cabove', + flags=bit.bor(RANGE, TRLBAR), + addr_type=ADDR_OTHER , + func='ex_cbelow', + }, { command='caddbuffer', flags=bit.bor(RANGE, NOTADR, WORD1, TRLBAR), @@ -358,6 +364,12 @@ return { addr_type=ADDR_LINES, func='ex_cbuffer', }, + { + command='cbelow', + flags=bit.bor(RANGE, TRLBAR), + addr_type=ADDR_OTHER , + func='ex_cbelow', + }, { command='cbottom', flags=bit.bor(TRLBAR), @@ -1272,6 +1284,12 @@ return { addr_type=ADDR_LINES, func='ex_last', }, + { + command='labove', + flags=bit.bor(RANGE, TRLBAR), + addr_type=ADDR_OTHER , + func='ex_cbelow', + }, { command='language', flags=bit.bor(EXTRA, TRLBAR, CMDWIN), @@ -1308,6 +1326,12 @@ return { addr_type=ADDR_LINES, func='ex_cbuffer', }, + { + command='lbelow', + flags=bit.bor(RANGE, TRLBAR), + addr_type=ADDR_OTHER , + func='ex_cbelow', + }, { command='lbottom', flags=bit.bor(TRLBAR), -- cgit