patch 8.2.3795: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index d0b80be..b6f3d89 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4301,12 +4301,10 @@
static void
f_getchangelist(typval_T *argvars, typval_T *rettv)
{
-#ifdef FEAT_JUMPLIST
buf_T *buf;
int i;
list_T *l;
dict_T *d;
-#endif
if (rettv_list_alloc(rettv) != OK)
return;
@@ -4314,7 +4312,6 @@
if (in_vim9script() && check_for_opt_buffer_arg(argvars, 0) == FAIL)
return;
-#ifdef FEAT_JUMPLIST
if (argvars[0].v_type == VAR_UNKNOWN)
buf = curbuf;
else
@@ -4349,7 +4346,6 @@
dict_add_number(d, "col", (long)buf->b_changelist[i].col);
dict_add_number(d, "coladd", (long)buf->b_changelist[i].coladd);
}
-#endif
}
static void
@@ -4525,12 +4521,10 @@
static void
f_getjumplist(typval_T *argvars, typval_T *rettv)
{
-#ifdef FEAT_JUMPLIST
win_T *wp;
int i;
list_T *l;
dict_T *d;
-#endif
if (rettv_list_alloc(rettv) != OK)
return;
@@ -4541,7 +4535,6 @@
&& check_for_opt_number_arg(argvars, 1) == FAIL)))
return;
-#ifdef FEAT_JUMPLIST
wp = find_tabwin(&argvars[0], &argvars[1], NULL);
if (wp == NULL)
return;
@@ -4571,7 +4564,6 @@
if (wp->w_jumplist[i].fname != NULL)
dict_add_string(d, "filename", wp->w_jumplist[i].fname);
}
-#endif
}
/*
@@ -5322,13 +5314,7 @@
0
#endif
},
- {"jumplist",
-#ifdef FEAT_JUMPLIST
- 1
-#else
- 0
-#endif
- },
+ {"jumplist", 1},
{"keymap",
#ifdef FEAT_KEYMAP
1