vim-patch:8.1.1275: cannot navigate to errors before/after the cursor

Problem:    Cannot navigate to errors before/after the cursor.
Solution:   Add the :cbefore and :cafter commands. (Yegappan Lakshmanan,
            closes vim/vim#4340)
cf6a55c4b0
This commit is contained in:
Jan Edmund Lazo
2021-01-01 03:32:43 -05:00
parent 5cf94effee
commit d1608f7503
5 changed files with 306 additions and 76 deletions

View File

@@ -342,6 +342,12 @@ module.cmds = {
addr_type='ADDR_NONE',
func='ex_cfile',
},
{
command='cafter',
flags=bit.bor(RANGE, COUNT, TRLBAR),
addr_type='ADDR_UNSIGNED',
func='ex_cbelow',
},
{
command='call',
flags=bit.bor(RANGE, NEEDARG, EXTRA, NOTRLCOM, SBOXOK, CMDWIN),
@@ -360,6 +366,12 @@ module.cmds = {
addr_type='ADDR_OTHER',
func='ex_cbuffer',
},
{
command='cbefore',
flags=bit.bor(RANGE, COUNT, TRLBAR),
addr_type='ADDR_UNSIGNED',
func='ex_cbelow',
},
{
command='cbelow',
flags=bit.bor(RANGE, COUNT, TRLBAR),
@@ -1310,6 +1322,12 @@ module.cmds = {
addr_type='ADDR_NONE',
func='ex_cfile',
},
{
command='lafter',
flags=bit.bor(RANGE, COUNT, TRLBAR),
addr_type='ADDR_UNSIGNED',
func='ex_cbelow',
},
{
command='later',
flags=bit.bor(TRLBAR, EXTRA, NOSPC, CMDWIN),
@@ -1322,6 +1340,12 @@ module.cmds = {
addr_type='ADDR_OTHER',
func='ex_cbuffer',
},
{
command='lbefore',
flags=bit.bor(RANGE, COUNT, TRLBAR),
addr_type='ADDR_UNSIGNED',
func='ex_cbelow',
},
{
command='lbelow',
flags=bit.bor(RANGE, COUNT, TRLBAR),