api: Handle NULs and newlines in buffer_*_line.

This commit is contained in:
Scott Prager
2014-10-24 14:23:17 -04:00
parent 279c519e33
commit 460843b4cd
2 changed files with 23 additions and 2 deletions

View File

@@ -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)