Mercurial > vim
comparison src/testdir/test_search.vim @ 14532:58cc47fae12e v8.1.0279
patch 8.1.0279: 'incsearch' highlighting does not skip white space
commit https://github.com/vim/vim/commit/2b926fcb3c5d8bd09a219009336bbec7c66ae67e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 13 11:07:57 2018 +0200
patch 8.1.0279: 'incsearch' highlighting does not skip white space
Problem: 'incsearch' highlighting does not skip white space.
Solution: Skip white space after the command. (issue https://github.com/vim/vim/issues/3321)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 13 Aug 2018 11:15:05 +0200 |
parents | 60e0022e6e5d |
children | 8fa7f5ff2649 |
comparison
equal
deleted
inserted
replaced
14531:6d1726a06a8b | 14532:58cc47fae12e |
---|---|
866 | 866 |
867 " Reverse range is accepted | 867 " Reverse range is accepted |
868 call term_sendkeys(buf, ':5,2s/foo') | 868 call term_sendkeys(buf, ':5,2s/foo') |
869 sleep 100m | 869 sleep 100m |
870 call VerifyScreenDump(buf, 'Test_incsearch_substitute_04', {}) | 870 call VerifyScreenDump(buf, 'Test_incsearch_substitute_04', {}) |
871 | |
872 call term_sendkeys(buf, "\<Esc>") | 871 call term_sendkeys(buf, "\<Esc>") |
872 | |
873 " White space after the command is skipped | |
874 call term_sendkeys(buf, ':2,3sub /fo') | |
875 sleep 100m | |
876 call VerifyScreenDump(buf, 'Test_incsearch_substitute_05', {}) | |
877 call term_sendkeys(buf, "\<Esc>") | |
878 | |
873 call StopVimInTerminal(buf) | 879 call StopVimInTerminal(buf) |
874 call delete('Xis_subst_script') | 880 call delete('Xis_subst_script') |
875 endfunc | 881 endfunc |
876 | 882 |
877 func Test_search_undefined_behaviour() | 883 func Test_search_undefined_behaviour() |