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:
Björn Linse
2015-04-12 22:13:45 +02:00
parent edb13791bd
commit 26fedb133d
5 changed files with 43 additions and 22 deletions

View File

@@ -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 {