diff src/testdir/test_display.vim @ 26634:c75f70257cf5 v8.2.3846

patch 8.2.3846: no error when using control character for 'lcs' or 'fcs' Commit: https://github.com/vim/vim/commit/60618c8f1a7ea55452837a446525272142286471 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Dec 18 15:32:46 2021 +0000 patch 8.2.3846: no error when using control character for 'lcs' or 'fcs' Problem: No error when using control character for 'lcs' or 'fcs'. Solution: Use char2cells() to check the width. (closes https://github.com/vim/vim/issues/9369)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Dec 2021 16:45:03 +0100
parents 03492b62d79a
children 95d6e3c9aa1e
line wrap: on
line diff
--- a/src/testdir/test_display.vim
+++ b/src/testdir/test_display.vim
@@ -266,6 +266,8 @@ func Test_eob_fillchars()
   call assert_fails(':set fillchars=eob:xy', 'E474:')
   call assert_fails(':set fillchars=eob:\255', 'E474:')
   call assert_fails(':set fillchars=eob:<ff>', 'E474:')
+  call assert_fails(":set fillchars=eob:\x01", 'E474:')
+  call assert_fails(':set fillchars=eob:\\x01', 'E474:')
   " default is ~
   new
   redraw