comparison src/testdir/test_options.vim @ 28786:fd5942a62312 v8.2.4917

patch 8.2.4917: fuzzy expansion of option names is not right Commit: https://github.com/vim/vim/commit/cb747899bd99361a299a163f3aa55d5fe7d6f798 Author: Christian Brabandt <cb@256bit.org> Date: Sun May 8 21:10:56 2022 +0100 patch 8.2.4917: fuzzy expansion of option names is not right Problem: Fuzzy expansion of option names is not right. Solution: Pass the fuzzy flag down the call chain. (Christian Brabandt, closes #10380, closes #10318)
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 May 2022 22:15:02 +0200
parents 8f4f16efeeb3
children fea88e555652
comparison
equal deleted inserted replaced
28785:cf6469422b92 28786:fd5942a62312
1255 call assert_equal(path, getcwd()) 1255 call assert_equal(path, getcwd())
1256 1256
1257 set cdhome& 1257 set cdhome&
1258 endfunc 1258 endfunc
1259 1259
1260 func Test_set_completion_2()
1261 CheckOption termguicolors
1262
1263 " Test default option completion
1264 set wildoptions=
1265 call feedkeys(":set termg\<C-A>\<C-B>\"\<CR>", 'tx')
1266 call assert_equal('"set termguicolors', @:)
1267
1268 call feedkeys(":set notermg\<C-A>\<C-B>\"\<CR>", 'tx')
1269 call assert_equal('"set notermguicolors', @:)
1270
1271 " Test fuzzy option completion
1272 set wildoptions=fuzzy
1273 call feedkeys(":set termg\<C-A>\<C-B>\"\<CR>", 'tx')
1274 call assert_equal('"set termguicolors termencoding', @:)
1275
1276 call feedkeys(":set notermg\<C-A>\<C-B>\"\<CR>", 'tx')
1277 call assert_equal('"set notermguicolors', @:)
1278
1279 set wildoptions=
1280 endfunc
1281
1260 " vim: shiftwidth=2 sts=2 expandtab 1282 " vim: shiftwidth=2 sts=2 expandtab