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/old/testdir | |
| 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/old/testdir')
| -rw-r--r-- | test/old/testdir/test_hlsearch.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/old/testdir/test_hlsearch.vim b/test/old/testdir/test_hlsearch.vim index 043d378a39..fb1695220a 100644 --- a/test/old/testdir/test_hlsearch.vim +++ b/test/old/testdir/test_hlsearch.vim @@ -85,4 +85,23 @@ func Test_hlsearch_Ctrl_R() call StopVimInTerminal(buf) endfunc +func Test_hlsearch_clipboard() + CheckRunVimInTerminal + CheckFeature clipboard_working + + let lines =<< trim END + set incsearch hlsearch + let @* = "text" + put * + END + call writefile(lines, 'XhlsearchClipboard', 'D') + let buf = RunVimInTerminal('-S XhlsearchClipboard', #{rows: 6, cols: 60}) + + call term_sendkeys(buf, "/\<C-R>*") + call VerifyScreenDump(buf, 'Test_hlsearch_ctrlr_1', {}) + + call term_sendkeys(buf, "\<Esc>") + call StopVimInTerminal(buf) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |