mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
clipboard: cleanup valid_yank_reg
and use it for :redir
This fixes missing clipboard support for `:redir` Helped-By: Michael Reed <m.reed@mykolab.com> Helped-By: Scott Prager <splinterofchaos@gmail.com>
This commit is contained in:
@@ -6752,7 +6752,7 @@ static void ins_reg(void)
|
||||
|
||||
regname = get_expr_register();
|
||||
}
|
||||
if (regname == NUL || !valid_yank_reg(regname, FALSE)) {
|
||||
if (regname == NUL || !valid_yank_reg(regname, false)) {
|
||||
vim_beep();
|
||||
need_redraw = TRUE; /* remove the '"' */
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user