diff options
author | Aufar Gilbran <aufargilbran@gmail.com> | 2020-08-19 00:49:38 +0800 |
---|---|---|
committer | Aufar Gilbran <aufargilbran@gmail.com> | 2020-09-11 10:33:20 +0800 |
commit | ab7e101540435b7de221ded309b34f2f000105f4 (patch) | |
tree | 8c35f91b9aef70f6fde39711bc341bd1a23f662f /test/functional/legacy | |
parent | c0102c140cb6d0e2be37c583d34f8ecdf7228f3a (diff) | |
download | rneovim-ab7e101540435b7de221ded309b34f2f000105f4.tar.gz rneovim-ab7e101540435b7de221ded309b34f2f000105f4.tar.bz2 rneovim-ab7e101540435b7de221ded309b34f2f000105f4.zip |
vim-patch:8.1.0291: 'incsearch' highlighting not used for :sort
Problem: 'incsearch' highlighting not used for :sort.
Solution: Handle pattern in :sort command.
https://github.com/vim/vim/commit/81f56536b1bc324eb173924a8cf4d7dbbf4f3fdb
Diffstat (limited to 'test/functional/legacy')
-rw-r--r-- | test/functional/legacy/search_spec.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/legacy/search_spec.lua b/test/functional/legacy/search_spec.lua index a207b176d3..0802b43689 100644 --- a/test/functional/legacy/search_spec.lua +++ b/test/functional/legacy/search_spec.lua @@ -21,6 +21,7 @@ describe('search cmdline', function() err = { foreground = Screen.colors.Grey100, background = Screen.colors.Red }, more = { bold = true, foreground = Screen.colors.SeaGreen4 }, tilde = { bold = true, foreground = Screen.colors.Blue1 }, + hl = { background = Screen.colors.Yellow }, }) end) @@ -570,4 +571,20 @@ describe('search cmdline', function() ?the | ]]) end) + + it('incsearch works with :sort', function() + -- oldtest: Test_incsearch_sort_dump(). + screen:try_resize(20, 4) + command('set incsearch hlsearch scrolloff=0') + funcs.setline(1, {'another one 2', 'that one 3', 'the one 1'}) + + feed(':sort ni u /on') + screen:expect([[ + another {inc:on}e 2 | + that {hl:on}e 3 | + the {hl:on}e 1 | + :sort ni u /on^ | + ]]) + feed('<esc>') + end) end) |