diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-22 06:41:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 06:41:51 +0800 |
commit | 8af3d641daf03610c824ca4e0dffa07db297cb5b (patch) | |
tree | 8e79e3c6aacf683e5c15eab3ee48f0d4d71feea8 /test/functional/ui/statusline_spec.lua | |
parent | 946c8fd2886df9db288797c257bf067b904a3551 (diff) | |
download | rneovim-8af3d641daf03610c824ca4e0dffa07db297cb5b.tar.gz rneovim-8af3d641daf03610c824ca4e0dffa07db297cb5b.tar.bz2 rneovim-8af3d641daf03610c824ca4e0dffa07db297cb5b.zip |
fix(grid): don't use utfc_ptr2char_len() when printing until NUL (#19456)
Diffstat (limited to 'test/functional/ui/statusline_spec.lua')
-rw-r--r-- | test/functional/ui/statusline_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/ui/statusline_spec.lua b/test/functional/ui/statusline_spec.lua index 2ffd3149a6..760760150c 100644 --- a/test/functional/ui/statusline_spec.lua +++ b/test/functional/ui/statusline_spec.lua @@ -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) |