mirror of
https://github.com/neovim/neovim.git
synced 2025-11-22 10:06:33 +00:00
api: Handle NULs and newlines in buffer_*_line.
This commit is contained in:
@@ -34,6 +34,11 @@ describe('buffer_* functions', function()
|
||||
curbuf('del_line', 0)
|
||||
eq('', curbuf('get_line', 0))
|
||||
end)
|
||||
|
||||
it('can handle NULs', function()
|
||||
curbuf('set_line', 0, 'ab\0cd')
|
||||
eq('ab\0cd', curbuf('get_line', 0))
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user