aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 38ddd55855..1cd52832ee 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -18313,7 +18313,6 @@ handle_subscript (
char_u *s;
int len;
typval_T functv;
- partial_T *pt = NULL;
while (ret == OK
&& (**arg == '['
@@ -18322,7 +18321,8 @@ handle_subscript (
|| rettv->v_type == VAR_PARTIAL)))
&& !ascii_iswhite(*(*arg - 1))) {
if (**arg == '(') {
- /* need to copy the funcref so that we can clear rettv */
+ partial_T *pt = NULL;
+ // need to copy the funcref so that we can clear rettv
if (evaluate) {
functv = *rettv;
rettv->v_type = VAR_UNKNOWN;