From fa8b2b4c50c089804a57f77aed6650b7e4c3f0cc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 7 Aug 2022 17:11:03 +0800 Subject: vim-patch:8.2.4492: no error if an option is given a value with ":let &opt = val" (#19670) Problem: No error if an option is given an invalid value with ":let &opt = val". Solution: Give the error. (closes vim/vim#9864) https://github.com/vim/vim/commit/8ccbbeb620dcc73154de29c51100fe815cefe109 --- src/nvim/testdir/test_normal.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nvim/testdir/test_normal.vim') diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index f18ddb274c..7cb70aa2af 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -1975,7 +1975,8 @@ func Test_normal31_r_cmd() " using CTRL-Y and CTRL-E. " Different code paths are used for utf-8 and latin1 encodings set showmatch - for enc in ['latin1', 'utf-8'] + " for enc in ['latin1', 'utf-8'] + for enc in ['utf-8'] enew! let &encoding = enc call setline(1, [' {a}', 'xxxxxxxxxx', ' [b]']) -- cgit