summaryrefslogtreecommitdiff
path: root/src/misc1.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/misc1.c
parente738a1a033cd31cd2568ba99a9e2dca1e65b45ea (diff)
downloadvim-git-4033c55eca575777718c0701e26635a0cc47d907.tar.gz
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/misc1.c')
-rw-r--r--src/misc1.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 8ae75e6d8..369b716ad 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -1984,10 +1984,8 @@ plines_win_nofill(
if (!wp->w_p_wrap)
return 1;
-#ifdef FEAT_WINDOWS
if (wp->w_width == 0)
return 1;
-#endif
#ifdef FEAT_FOLDING
/* A folded lines is handled just like an empty line. */
@@ -2060,10 +2058,8 @@ plines_win_col(win_T *wp, linenr_T lnum, long column)
if (!wp->w_p_wrap)
return lines + 1;
-#ifdef FEAT_WINDOWS
if (wp->w_width == 0)
return lines + 1;
-#endif
line = s = ml_get_buf(wp->w_buffer, lnum, FALSE);
@@ -2787,10 +2783,8 @@ changed_int(void)
{
curbuf->b_changed = TRUE;
ml_setflags(curbuf);
-#ifdef FEAT_WINDOWS
check_status(curbuf);
redraw_tabline = TRUE;
-#endif
#ifdef FEAT_TITLE
need_maketitle = TRUE; /* set window title later */
#endif
@@ -2995,9 +2989,7 @@ changed_common(
long xtra)
{
win_T *wp;
-#ifdef FEAT_WINDOWS
tabpage_T *tp;
-#endif
int i;
#ifdef FEAT_JUMPLIST
int cols;
@@ -3199,10 +3191,8 @@ unchanged(
ml_setflags(buf);
if (ff)
save_file_ff(buf);
-#ifdef FEAT_WINDOWS
check_status(buf);
redraw_tabline = TRUE;
-#endif
#ifdef FEAT_TITLE
need_maketitle = TRUE; /* set window title later */
#endif
@@ -3213,7 +3203,6 @@ unchanged(
#endif
}
-#if defined(FEAT_WINDOWS) || defined(PROTO)
/*
* check_status: called when the status bars for the buffer 'buf'
* need to be updated
@@ -3231,7 +3220,6 @@ check_status(buf_T *buf)
must_redraw = VALID;
}
}
-#endif
/*
* If the file is readonly, give a warning message with the first change.
@@ -5024,8 +5012,6 @@ vim_ispathlistsep(int c)
}
#endif
-#if defined(FEAT_GUI_TABLINE) || defined(FEAT_WINDOWS) \
- || defined(FEAT_EVAL) || defined(PROTO)
/*
* Shorten the path of a file from "~/foo/../.bar/fname" to "~/f/../.b/fname"
* It's done in-place.
@@ -5068,7 +5054,6 @@ shorten_dir(char_u *str)
}
}
}
-#endif
/*
* Return TRUE if the directory of "fname" exists, FALSE otherwise.