This commit is contained in:
Jan Edmund Lazo
2019-05-26 21:45:46 -04:00
parent b2a11515b2
commit 3c3b7844b9
5 changed files with 35 additions and 40 deletions

View File

@@ -13558,9 +13558,8 @@ static void f_readfile(typval_T *argvars, typval_T *rettv, FunPtr fptr)
static void return_register(int regname, typval_T *rettv)
{
char_u buf[2] = {0, 0};
char_u buf[2] = { regname, 0 };
buf[0] = (char_u)regname;
rettv->v_type = VAR_STRING;
rettv->vval.v_string = vim_strsave(buf);
}