diff src/testdir/test_search.vim @ 14530:60e0022e6e5d v8.1.0278

patch 8.1.0278: 'incsearch' highlighting does not accept reverse range commit https://github.com/vim/vim/commit/60d0871000e9abf3716ee035cba5b5a9d659e327 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 12 21:53:15 2018 +0200 patch 8.1.0278: 'incsearch' highlighting does not accept reverse range Problem: 'incsearch' highlighting does not accept reverse range. Solution: Swap the range when needed. (issue https://github.com/vim/vim/issues/3321)
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Aug 2018 22:00:05 +0200
parents 58ca11610819
children 58cc47fae12e
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -862,6 +862,12 @@ func Test_incsearch_substitute_dump()
   call term_sendkeys(buf, "\<BS>")
   sleep 100m
   call VerifyScreenDump(buf, 'Test_incsearch_substitute_03', {})
+  call term_sendkeys(buf, "\<Esc>")
+
+  " Reverse range is accepted
+  call term_sendkeys(buf, ':5,2s/foo')
+  sleep 100m
+  call VerifyScreenDump(buf, 'Test_incsearch_substitute_04', {})
 
   call term_sendkeys(buf, "\<Esc>")
   call StopVimInTerminal(buf)