comparison src/testdir/test_search.vim @ 25874:054623fc54c5 v8.2.3471

patch 8.2.3471: crash when using CTRL-T after an empty search pattern Commit: https://github.com/vim/vim/commit/d8d957de86f218de9124ca1209548f8c6f61b69b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 4 19:47:35 2021 +0100 patch 8.2.3471: crash when using CTRL-T after an empty search pattern Problem: Crash when using CTRL-T after an empty search pattern. Solution: Bail out when there is no previous search pattern. (closes https://github.com/vim/vim/issues/8953)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Oct 2021 21:00:06 +0200
parents a6eea433586b
children b4d009c477a4
comparison
equal deleted inserted replaced
25873:804e25dfd950 25874:054623fc54c5
1975 1975
1976 set smartcase& ignorecase& 1976 set smartcase& ignorecase&
1977 bw! 1977 bw!
1978 endfunc 1978 endfunc
1979 1979
1980 func Test_no_last_search_pattern()
1981 CheckOption incsearch
1982
1983 let @/ = ""
1984 set incsearch
1985 " this was causing a crash
1986 call feedkeys("//\x14", 'xt')
1987 endfunc
1988
1989
1980 " vim: shiftwidth=2 sts=2 expandtab 1990 " vim: shiftwidth=2 sts=2 expandtab