comparison src/testdir/test_search_stat.vim @ 20685:4c66962d322b v8.2.0896

patch 8.2.0896: crash when calling searchcount() with a string Commit: https://github.com/vim/vim/commit/14681627f39421cce289345d4ec9927c10fa3b1c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 3 22:57:39 2020 +0200 patch 8.2.0896: crash when calling searchcount() with a string Problem: Crash when calling searchcount() with a string. Solution: Check the argument is a dict. (closes https://github.com/vim/vim/issues/6192)
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Jun 2020 23:00:03 +0200
parents a126f643d566
children 1260b27535b5
comparison
equal deleted inserted replaced
20684:635e76ab3722 20685:4c66962d322b
255 255
256 " Clean up 256 " Clean up
257 set shortmess+=S 257 set shortmess+=S
258 " close the window 258 " close the window
259 bwipe! 259 bwipe!
260 endfunc
261
262 func Test_searchcount_fails()
263 call assert_fails('echo searchcount("boo!")', 'E715:')
260 endfunc 264 endfunc
261 265
262 func Test_search_stat_foldopen() 266 func Test_search_stat_foldopen()
263 CheckScreendump 267 CheckScreendump
264 268