Mercurial > vim
comparison src/testdir/test_search.vim @ 24000:bb2e921d2601 v8.2.2542
patch 8.2.2542: highlight of char beyond line end is not correct
Commit: https://github.com/vim/vim/commit/41f0895c6e3c7b921e3c102ad42be52b1be48018
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 22 22:13:49 2021 +0100
patch 8.2.2542: highlight of char beyond line end is not correct
Problem: Highlight of char beyond line end is not correct. (Chuan Wei Foo)
Solution: Fix counting NUL as one cell. Draw one more character if the EOL
is part of the match. (closes #7883)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 22 Feb 2021 22:15:03 +0100 |
parents | bb29b09902d5 |
children | e3efa11b6a1e |
comparison
equal
deleted
inserted
replaced
23999:ff467cccc34c | 24000:bb2e921d2601 |
---|---|
942 | 942 |
943 call StopVimInTerminal(buf) | 943 call StopVimInTerminal(buf) |
944 call delete('Xis_search_script') | 944 call delete('Xis_search_script') |
945 endfunc | 945 endfunc |
946 | 946 |
947 func Test_hlsearch_dump() | |
948 CheckOption hlsearch | |
949 CheckScreendump | |
950 | |
951 call writefile([ | |
952 \ 'set hlsearch cursorline', | |
953 \ 'call setline(1, ["xxx", "xxx", "xxx"])', | |
954 \ '/.*', | |
955 \ '2', | |
956 \ ], 'Xhlsearch_script') | |
957 let buf = RunVimInTerminal('-S Xhlsearch_script', {'rows': 6, 'cols': 50}) | |
958 call VerifyScreenDump(buf, 'Test_hlsearch_1', {}) | |
959 | |
960 call term_sendkeys(buf, "/\\_.*\<CR>") | |
961 call VerifyScreenDump(buf, 'Test_hlsearch_2', {}) | |
962 | |
963 call StopVimInTerminal(buf) | |
964 call delete('Xhlsearch_script') | |
965 endfunc | |
966 | |
947 func Test_incsearch_substitute() | 967 func Test_incsearch_substitute() |
948 CheckOption incsearch | 968 CheckOption incsearch |
949 | 969 |
950 call test_override("char_avail", 1) | 970 call test_override("char_avail", 1) |
951 new | 971 new |