comparison src/testdir/test_options.vim @ 30417:6a1862bfb280 v9.0.0544

patch 9.0.0544: minor issues with setting a string option Commit: https://github.com/vim/vim/commit/fcba86c0316dc0d6341078b50e7967206a1627a0 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Sep 22 13:57:32 2022 +0100 patch 9.0.0544: minor issues with setting a string option Problem: Minor issues with setting a string option. Solution: Adjust the code, add a test. (closes https://github.com/vim/vim/issues/11192)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 15:00:05 +0200
parents 56e38195570b
children 457ea0570b6f
comparison
equal deleted inserted replaced
30416:41b0b57c4ebd 30417:6a1862bfb280
1341 sblast 1341 sblast
1342 call assert_equal(2, winnr('$')) 1342 call assert_equal(2, winnr('$'))
1343 only! 1343 only!
1344 endfunc 1344 endfunc
1345 1345
1346 " :set empty string for global 'keywordprg' falls back to ":help"
1347 func Test_keywordprg_empty()
1348 let k = &keywordprg
1349 set keywordprg=man
1350 call assert_equal('man', &keywordprg)
1351 set keywordprg=
1352 call assert_equal(':help', &keywordprg)
1353 set keywordprg=man
1354 call assert_equal('man', &keywordprg)
1355 call assert_equal("\n keywordprg=:help", execute('set kp= kp?'))
1356 let &keywordprg = k
1357 endfunc
1358
1359
1346 " vim: shiftwidth=2 sts=2 expandtab 1360 " vim: shiftwidth=2 sts=2 expandtab