From: zeertzjq Date: Fri, 31 Dec 2021 15:21:53 +0000 (+0000) Subject: patch 8.2.3956: duplicate assignment X-Git-Tag: v8.2.3956 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b1478093eb8b8bebc94b1f596e0afc25db4d189;p=vim patch 8.2.3956: duplicate assignment Problem: Duplicate assignment. Solution: Remove the second assignment. (closes #9442) --- diff --git a/src/evalfunc.c b/src/evalfunc.c index f3105200f..b9310c193 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4847,7 +4847,6 @@ f_getregtype(typval_T *argvars, typval_T *rettv) sprintf((char *)buf + 1, "%ld", reglen + 1); break; } - rettv->v_type = VAR_STRING; rettv->vval.v_string = vim_strsave(buf); } diff --git a/src/version.c b/src/version.c index 8505282d7..d623c586a 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3956, /**/ 3955, /**/