mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.3956: duplicate assignment
Problem: Duplicate assignment.
Solution: Remove the second assignment. (closes vim/vim#9442)
4b1478093e
This commit is contained in:
parent
b218d02c44
commit
f6c89e03d7
@ -3991,7 +3991,6 @@ static void f_getregtype(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
MotionType reg_type = get_reg_type(regname, ®len);
|
||||
format_reg_type(reg_type, reglen, buf, ARRAY_SIZE(buf));
|
||||
|
||||
rettv->v_type = VAR_STRING;
|
||||
rettv->vval.v_string = (char_u *)xstrdup(buf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user