Mercurial > vim
diff src/mark.c @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | d4ffc3dc9fb0 |
children | ac42c4b11dbc |
line wrap: on
line diff
--- 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 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 */ 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)