summaryrefslogtreecommitdiff
path: root/src/testdir/test_search_stat.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-03 22:57:39 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-03 22:57:39 +0200
commit14681627f39421cce289345d4ec9927c10fa3b1c (patch)
treef7ba64b787e34d2fc1438a9546c3b9733d8b0802 /src/testdir/test_search_stat.vim
parent408c23b0794540ee3c568a1569f21406c5ed3ab8 (diff)
downloadvim-git-14681627f39421cce289345d4ec9927c10fa3b1c.tar.gz
patch 8.2.0896: crash when calling searchcount() with a stringv8.2.0896
Problem: Crash when calling searchcount() with a string. Solution: Check the argument is a dict. (closes #6192)
Diffstat (limited to 'src/testdir/test_search_stat.vim')
-rw-r--r--src/testdir/test_search_stat.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_search_stat.vim b/src/testdir/test_search_stat.vim
index 668545c5a..85e4f866e 100644
--- a/src/testdir/test_search_stat.vim
+++ b/src/testdir/test_search_stat.vim
@@ -259,6 +259,10 @@ func Test_search_stat()
bwipe!
endfunc
+func Test_searchcount_fails()
+ call assert_fails('echo searchcount("boo!")', 'E715:')
+endfunc
+
func Test_search_stat_foldopen()
CheckScreendump