aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-22 21:34:46 +0800
committerGitHub <noreply@github.com>2022-09-22 21:34:46 +0800
commit11f91ac304e7f4d96b8c5f7e056bf941da32466b (patch)
treedd5d91e1be996fe4504938a4dd984f8b63953a56 /src/nvim/testdir
parent5c1b8d7bf80d03c70a5972432ac11e60e903d232 (diff)
parent4371886293b4956530f8bec49b01c0ee02771434 (diff)
downloadrneovim-11f91ac304e7f4d96b8c5f7e056bf941da32466b.tar.gz
rneovim-11f91ac304e7f4d96b8c5f7e056bf941da32466b.tar.bz2
rneovim-11f91ac304e7f4d96b8c5f7e056bf941da32466b.zip
Merge pull request #20287 from zeertzjq/vim-9.0.0540
vim-patch:9.0.{0540,0544}: assigning stack variable to argument confuses Coverity
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 952975df32..ada6d2406b 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -1209,4 +1209,18 @@ func Test_switchbuf_reset()
only!
endfunc
+" :set empty string for global 'keywordprg' falls back to ":help"
+func Test_keywordprg_empty()
+ let k = &keywordprg
+ set keywordprg=man
+ call assert_equal('man', &keywordprg)
+ set keywordprg=
+ call assert_equal(':help', &keywordprg)
+ set keywordprg=man
+ call assert_equal('man', &keywordprg)
+ call assert_equal("\n keywordprg=:help", execute('set kp= kp?'))
+ let &keywordprg = k
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab