mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 00:22:41 +00:00
fix(lsp): handle insertion of previous line (#17618)
This commit is contained in:
committed by
GitHub
parent
24d56116f7
commit
3800615da9
@@ -259,6 +259,25 @@ describe('incremental synchronization', function()
|
||||
}
|
||||
test_edit({""}, {"o"}, expected_text_changes, 'utf-16', '\n')
|
||||
end)
|
||||
it('insert a line above the current line', function()
|
||||
local expected_text_changes = {
|
||||
{
|
||||
range = {
|
||||
['start'] = {
|
||||
character = 0,
|
||||
line = 0
|
||||
},
|
||||
['end'] = {
|
||||
character = 0,
|
||||
line = 0
|
||||
}
|
||||
},
|
||||
rangeLength = 0,
|
||||
text = '\n'
|
||||
}
|
||||
}
|
||||
test_edit({""}, {"O"}, expected_text_changes, 'utf-16', '\n')
|
||||
end)
|
||||
end)
|
||||
describe('multi line edit', function()
|
||||
it('deletion and insertion', function()
|
||||
|
||||
Reference in New Issue
Block a user