mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00

committed by
Justin M. Keyes

parent
86c4a87fe9
commit
001e69cd46
@@ -507,7 +507,7 @@ describe('API/extmarks', function()
|
||||
feed('0l3dl<esc>')
|
||||
check_undo_redo(ns, marks[1], 0, 2, 0, 1)
|
||||
check_undo_redo(ns, marks[2], 0, 3, 0, 1)
|
||||
-- delete 1, nothing should happend to our marks
|
||||
-- delete 1, nothing should happen to our marks
|
||||
feed('u')
|
||||
feed('$x')
|
||||
check_undo_redo(ns, marks[2], 0, 3, 0, 3)
|
||||
@@ -543,7 +543,7 @@ describe('API/extmarks', function()
|
||||
check_undo_redo(ns, marks[1], 0, 1, 0, 0)
|
||||
check_undo_redo(ns, marks[2], 0, 3, 0, 0)
|
||||
check_undo_redo(ns, marks[3], 1, 2, 1, 0)
|
||||
-- delete 1, nothing should happend to our marks
|
||||
-- delete 1, nothing should happen to our marks
|
||||
feed('u')
|
||||
feed('$<c-v>jx')
|
||||
check_undo_redo(ns, marks[2], 0, 3, 0, 3)
|
||||
|
@@ -33,7 +33,7 @@ describe('cmdline autocommands', function()
|
||||
eq({'notification', 'CmdlineEnter', {{cmdtype=':', cmdlevel=1}}}, next_msg())
|
||||
|
||||
-- note: feed('bork<c-c>') might not consume 'bork'
|
||||
-- due to out-of-band interupt handling
|
||||
-- due to out-of-band interrupt handling
|
||||
feed('bork<esc>')
|
||||
eq({'notification', 'CmdlineLeave',
|
||||
{{cmdtype=':', cmdlevel=1, abort=true}}}, next_msg())
|
||||
|
@@ -6,7 +6,7 @@ describe('history support code', function()
|
||||
before_each(clear)
|
||||
|
||||
it('correctly clears start of the history', function()
|
||||
-- Regression test: check absense of the memory leak when clearing start of
|
||||
-- Regression test: check absence of the memory leak when clearing start of
|
||||
-- the history using ex_getln.c/clr_history().
|
||||
eq(1, funcs.histadd(':', 'foo'))
|
||||
eq(1, funcs.histdel(':'))
|
||||
@@ -14,7 +14,7 @@ describe('history support code', function()
|
||||
end)
|
||||
|
||||
it('correctly clears end of the history', function()
|
||||
-- Regression test: check absense of the memory leak when clearing end of
|
||||
-- Regression test: check absence of the memory leak when clearing end of
|
||||
-- the history using ex_getln.c/clr_history().
|
||||
meths.set_option('history', 1)
|
||||
eq(1, funcs.histadd(':', 'foo'))
|
||||
|
@@ -775,7 +775,7 @@ local function test_cmdline(linegrid)
|
||||
}}}
|
||||
|
||||
-- This used to send an invalid event where pos where larger than the total
|
||||
-- lenght of content. Checked in _handle_cmdline_show.
|
||||
-- length of content. Checked in _handle_cmdline_show.
|
||||
feed('<esc>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
|
@@ -442,7 +442,7 @@ describe('search highlighting', function()
|
||||
feed_command("call matchadd('MyGroup', 'special')")
|
||||
feed_command("call matchadd('MyGroup2', 'text', 0)")
|
||||
|
||||
-- searchhl and matchadd matches are exclusive, only the higest priority
|
||||
-- searchhl and matchadd matches are exclusive, only the highest priority
|
||||
-- is used (and matches with lower priorities are not combined)
|
||||
feed_command("/ial te")
|
||||
screen:expect([[
|
||||
|
Reference in New Issue
Block a user