summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-13 13:12:53 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-13 13:12:53 +0000
commit739f13a55b4982efb37ebc9282e7f79975fff982 (patch)
tree7ff6654580ba561b06c1fccaf2dffbf8a2334815 /src/normal.c
parent33b968dc60c5fa39451098e680c7559ebc65d1a7 (diff)
downloadvim-git-739f13a55b4982efb37ebc9282e7f79975fff982.tar.gz
patch 8.2.3795: too many #ifdefsv8.2.3795
Problem: Too many #ifdefs. Solution: Graduate the jumplist feature.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/normal.c b/src/normal.c
index 2d7554804..1e887ca91 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5593,12 +5593,11 @@ nv_gomark(cmdarg_T *cap)
static void
nv_pcmark(cmdarg_T *cap)
{
-#ifdef FEAT_JUMPLIST
pos_T *pos;
-# ifdef FEAT_FOLDING
+#ifdef FEAT_FOLDING
linenr_T lnum = curwin->w_cursor.lnum;
int old_KeyTyped = KeyTyped; // getting file may reset it
-# endif
+#endif
if (!checkclearopq(cap->oap))
{
@@ -5638,9 +5637,6 @@ nv_pcmark(cmdarg_T *cap)
foldOpenCursor();
# endif
}
-#else
- clearopbeep(cap->oap);
-#endif
}
/*
@@ -6444,7 +6440,6 @@ nv_g_cmd(cmdarg_T *cap)
do_exmode(TRUE);
break;
-#ifdef FEAT_JUMPLIST
case ',':
nv_pcmark(cap);
break;
@@ -6453,7 +6448,6 @@ nv_g_cmd(cmdarg_T *cap)
cap->count1 = -cap->count1;
nv_pcmark(cap);
break;
-#endif
case 't':
if (!checkclearop(oap))