From 77729b080055aa51fbaa5c7f2e5520abd4c3853a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 20 Aug 2019 04:13:55 +0200 Subject: vim-patch:8.1.0811: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter. https://github.com/vim/vim/commit/30276f2beb248557c6b33cd5418bca8b7084b0a5 --- src/nvim/testdir/test_cmdline.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/nvim/testdir/test_cmdline.vim') diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 4b333e444a..b8b018d5f7 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -568,7 +568,8 @@ func Test_setcmdpos() endfunc func Test_cmdline_overstrike() - let encodings = has('multi_byte') ? [ 'utf8' ] : [ 'latin1' ] + " Nvim: only utf8 is supported. + let encodings = ['utf8'] let encoding_save = &encoding for e in encodings @@ -587,11 +588,9 @@ func Test_cmdline_overstrike() call assert_equal('"ab0cd3ef4', @:) endfor - if has('multi_byte') - " Test overstrike with multi-byte characters. - call feedkeys(":\"テキストエディタ\\\ab\\cd\", 'xt') - call assert_equal('"テabキcdエディタ', @:) - endif + " Test overstrike with multi-byte characters. + call feedkeys(":\"テキストエディタ\\\ab\\cd\", 'xt') + call assert_equal('"テabキcdエディタ', @:) let &encoding = encoding_save endfunc -- cgit