summaryrefslogtreecommitdiffstats
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-16 20:54:51 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-16 20:54:51 +0200
commit4033c55eca575777718c0701e26635a0cc47d907 (patch)
tree8dc460ad495106198a9119b52f6505033f7a75b3 /src/mark.c
parente738a1a033cd31cd2568ba99a9e2dca1e65b45ea (diff)
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mark.c b/src/mark.c
index db5f5715c6..342bfcd9f7 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -1056,9 +1056,7 @@ mark_adjust_internal(
int fnum = curbuf->b_fnum;
linenr_T *lp;
win_T *win;
-#ifdef FEAT_WINDOWS
tabpage_T *tab;
-#endif
static pos_T initpos = INIT_POS_T(1, 0, 0);
if (line2 < line1 && amount_after == 0L) /* nothing to do */
@@ -1340,7 +1338,6 @@ cleanup_jumplist(void)
curwin->w_jumplistlen = to;
}
-# if defined(FEAT_WINDOWS) || defined(PROTO)
/*
* Copy the jumplist from window "from" to window "to".
*/
@@ -1370,7 +1367,6 @@ free_jumplist(win_T *wp)
for (i = 0; i < wp->w_jumplistlen; ++i)
vim_free(wp->w_jumplist[i].fname);
}
-# endif
#endif /* FEAT_JUMPLIST */
void
@@ -1895,7 +1891,6 @@ write_viminfo_marks(FILE *fp_out, garray_T *buflist)
buf_T *buf;
int is_mark_set;
int i;
-#ifdef FEAT_WINDOWS
win_T *win;
tabpage_T *tp;
@@ -1904,9 +1899,6 @@ write_viminfo_marks(FILE *fp_out, garray_T *buflist)
*/
FOR_ALL_TAB_WINDOWS(tp, win)
set_last_cursor(win);
-#else
- set_last_cursor(curwin);
-#endif
fputs(_("\n# History of marks within files (newest to oldest):\n"), fp_out);
FOR_ALL_BUFFERS(buf)