mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
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)
9cf6ab1332
Co-authored-by: K.Takata <kentkt@csc.jp>
This commit is contained in:
@@ -1597,7 +1597,7 @@ static int command_line_insert_reg(CommandLineState *s)
|
||||
|
||||
bool literally = false;
|
||||
if (s->c != ESC) { // use ESC to cancel inserting register
|
||||
literally = i == Ctrl_R;
|
||||
literally = i == Ctrl_R || is_literal_register(s->c);
|
||||
cmdline_paste(s->c, literally, false);
|
||||
|
||||
// When there was a serious error abort getting the
|
||||
|
Reference in New Issue
Block a user