This commit is contained in:
Jan Edmund Lazo 2019-06-01 00:37:36 -04:00
parent a51f24fda3
commit 2d002100b3

View File

@ -993,18 +993,19 @@ do_execreg(
"\020\021\022\023\024\025\026\027" "\020\021\022\023\024\025\026\027"
"\030\031\032\033\034\035\036\037", "\030\031\032\033\034\035\036\037",
Ctrl_V, false); Ctrl_V, false);
/* When in Visual mode "'<,'>" will be prepended to the command. // When in Visual mode "'<,'>" will be prepended to the command.
* Remove it when it's already there. */ // Remove it when it's already there.
if (VIsual_active && STRNCMP(p, "'<,'>", 5) == 0) if (VIsual_active && STRNCMP(p, "'<,'>", 5) == 0) {
retval = put_in_typebuf(p + 5, TRUE, TRUE, silent); retval = put_in_typebuf(p + 5, true, true, silent);
else } else {
retval = put_in_typebuf(p, TRUE, TRUE, silent); retval = put_in_typebuf(p, true, true, silent);
}
xfree(p); xfree(p);
} else if (regname == '=') { } else if (regname == '=') {
p = get_expr_line(); p = get_expr_line();
if (p == NULL) if (p == NULL)
return FAIL; return FAIL;
retval = put_in_typebuf(p, TRUE, colon, silent); retval = put_in_typebuf(p, true, colon, silent);
xfree(p); xfree(p);
} else if (regname == '.') { /* use last inserted text */ } else if (regname == '.') { /* use last inserted text */
p = get_last_insert_save(); p = get_last_insert_save();
@ -1012,7 +1013,7 @@ do_execreg(
EMSG(_(e_noinstext)); EMSG(_(e_noinstext));
return FAIL; return FAIL;
} }
retval = put_in_typebuf(p, FALSE, colon, silent); retval = put_in_typebuf(p, false, colon, silent);
xfree(p); xfree(p);
} else { } else {
yankreg_T *reg = get_yank_register(regname, YREG_PASTE); yankreg_T *reg = get_yank_register(regname, YREG_PASTE);
@ -1078,8 +1079,8 @@ static void put_reedit_in_typebuf(int silent)
*/ */
static int put_in_typebuf( static int put_in_typebuf(
char_u *s, char_u *s,
int esc, bool esc,
int colon, /* add ':' before the line */ bool colon, // add ':' before the line
int silent int silent
) )
{ {