mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
Merge pull request #21331 from LiadOz/LiadOz/prompt-insert-extmark
fix(extmarks): adjust extmarks when inserting prompt prefix
This commit is contained in:
@@ -1454,6 +1454,14 @@ describe('API/extmarks', function()
|
||||
}} }, get_extmarks(ns, 0, -1, {details=true}))
|
||||
end)
|
||||
|
||||
it('in prompt buffer', function()
|
||||
feed('dd')
|
||||
local id = set_extmark(ns, marks[1], 0, 0, {})
|
||||
curbufmeths.set_option('buftype', 'prompt')
|
||||
feed('i<esc>')
|
||||
eq({{id, 0, 2}}, get_extmarks(ns, 0, -1))
|
||||
end)
|
||||
|
||||
it('can get details', function()
|
||||
set_extmark(ns, marks[1], 0, 0, {
|
||||
end_col = 0,
|
||||
|
Reference in New Issue
Block a user