comparison src/testdir/test_search.vim @ 24514:e3efa11b6a1e v8.2.2797

patch 8.2.2797: Search highlight disappears in the Visual area Commit: https://github.com/vim/vim/commit/2d5f385cee3668c44089edcb9d60b0b5d751ee5d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 21 15:11:42 2021 +0200 patch 8.2.2797: Search highlight disappears in the Visual area Problem: Search highlight disappears in the Visual area. Solution: Combine the search attributes. (closes https://github.com/vim/vim/issues/8134)
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Apr 2021 15:15:04 +0200
parents bb2e921d2601
children 97789fcef0cf
comparison
equal deleted inserted replaced
24513:e9bced689811 24514:e3efa11b6a1e
962 962
963 call StopVimInTerminal(buf) 963 call StopVimInTerminal(buf)
964 call delete('Xhlsearch_script') 964 call delete('Xhlsearch_script')
965 endfunc 965 endfunc
966 966
967 func Test_hlsearch_and_visual()
968 CheckOption hlsearch
969 CheckScreendump
970
971 call writefile([
972 \ 'set hlsearch',
973 \ 'call setline(1, repeat(["xxx yyy zzz"], 3))',
974 \ 'hi Search cterm=bold',
975 \ '/yyy',
976 \ 'call cursor(1, 6)',
977 \ ], 'Xhlvisual_script')
978 let buf = RunVimInTerminal('-S Xhlvisual_script', {'rows': 6, 'cols': 40})
979 call term_sendkeys(buf, "vjj")
980 call VerifyScreenDump(buf, 'Test_hlsearch_visual_1', {})
981 call term_sendkeys(buf, "\<Esc>")
982
983 call StopVimInTerminal(buf)
984 call delete('Xhlvisual_script')
985 endfunc
986
967 func Test_incsearch_substitute() 987 func Test_incsearch_substitute()
968 CheckOption incsearch 988 CheckOption incsearch
969 989
970 call test_override("char_avail", 1) 990 call test_override("char_avail", 1)
971 new 991 new