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:
zeertzjq
2023-05-30 07:18:12 +08:00
committed by GitHub
parent e8776074f5
commit 55f6a1cab0
9 changed files with 63 additions and 14 deletions

View File

@@ -123,6 +123,15 @@ static inline int op_reg_index(const int regname)
}
}
/// @see get_yank_register
/// @return true when register should be inserted literally
/// (selection or clipboard)
static inline bool is_literal_register(const int regname)
FUNC_ATTR_CONST
{
return regname == '*' || regname == '+';
}
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "ops.h.generated.h"
#endif