diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-05-30 07:18:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 07:18:12 +0800 |
| commit | 55f6a1cab031ecc28c5a7f2558a0cac9df2145e1 (patch) | |
| tree | a1de3a75f54b7a728fa846f6d4c2df3276e4a424 /test/functional/ui | |
| parent | e8776074f50593df90402a3642236990edfba6f0 (diff) | |
| download | rneovim-55f6a1cab031ecc28c5a7f2558a0cac9df2145e1.tar.gz rneovim-55f6a1cab031ecc28c5a7f2558a0cac9df2145e1.tar.bz2 rneovim-55f6a1cab031ecc28c5a7f2558a0cac9df2145e1.zip | |
vim-patch:9.0.1588: Incsearch not triggered when pasting clipboard register (#23817)
Problem: Incsearch not triggered when pasting clipboard register on the
command line.
Solution: Also set "literally" when using a clipboard register. (Ken Takata,
closes vim/vim#12460)
https://github.com/vim/vim/commit/9cf6ab133227ac7e9169941752293bb7178d8e38
Co-authored-by: K.Takata <kentkt@csc.jp>
Diffstat (limited to 'test/functional/ui')
| -rw-r--r-- | test/functional/ui/searchhl_spec.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index 3c8dceb8cb..1e42689200 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -512,6 +512,36 @@ describe('search highlighting', function() {1:~ }│{1:~ }| /file^ | ]]) + feed('<Esc>') + + command('set rtp^=test/functional/fixtures') + -- incsearch works after c_CTRL-R inserts clipboard register + + command('let @* = "first"') + feed('/<C-R>*') + screen:expect([[ + the {3:first} line │the {2:first} line | + in a little file │in a little file | + {1:~ }│{1:~ }| + {1:~ }│{1:~ }| + {1:~ }│{1:~ }| + {1:~ }│{1:~ }| + /first^ | + ]]) + feed('<Esc>') + + command('let @+ = "little"') + feed('/<C-R>+') + screen:expect([[ + the first line │the first line | + in a {3:little} file │in a {2:little} file | + {1:~ }│{1:~ }| + {1:~ }│{1:~ }| + {1:~ }│{1:~ }| + {1:~ }│{1:~ }| + /little^ | + ]]) + feed('<Esc>') end) it('works with incsearch and offset', function() |