mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 16:54:12 +00:00
fix(grid): don't use utfc_ptr2char_len() when printing until NUL (#19456)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local Screen = require('test.functional.ui.screen')
|
||||
local assert_alive = helpers.assert_alive
|
||||
local clear = helpers.clear
|
||||
local command = helpers.command
|
||||
local feed = helpers.feed
|
||||
@@ -368,3 +369,11 @@ describe('global statusline', function()
|
||||
eq(1, meths.get_option('cmdheight'))
|
||||
end)
|
||||
end)
|
||||
|
||||
it('statusline does not crash if it has Arabic characters #19447', function()
|
||||
clear()
|
||||
meths.set_option('statusline', 'غً')
|
||||
meths.set_option('laststatus', 2)
|
||||
command('redraw!')
|
||||
assert_alive()
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user