summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-19 22:50:43 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-19 22:50:43 +0100
commit064154c3fedd6a46ca2f61463d7e5567bd22d9f1 (patch)
treea364586c2162a02b51a5273284a375c85fb695c3 /src/ex_getln.c
parentd293b2b9d43ee4b7b48ca6974202cbf319438975 (diff)
patch 7.4.1613v7.4.1613
Problem: Still can't build with small features. Solution: Adjust #ifdefs.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 27e23c72d6..8419d3f2c2 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -5861,7 +5861,7 @@ remove_key_from_history(void)
#endif /* FEAT_CMDHIST */
-#if defined(FEAT_EVAL) || defined(PROTO)
+#if defined(FEAT_EVAL) || defined(FEAT_CMDWIN) || defined(PROTO)
/*
* Get pointer to the command line info to use. cmdline_paste() may clear
* ccline and put the previous value in prev_ccline.
@@ -5877,7 +5877,9 @@ get_ccline_ptr(void)
return &prev_ccline;
return NULL;
}
+#endif
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Get the current command line in allocated memory.
* Only works when the command line is being edited.
@@ -5948,7 +5950,11 @@ get_cmdline_type(void)
if (p == NULL)
return NUL;
if (p->cmdfirstc == NUL)
- return (p->input_fn) ? '@' : '-';
+ return
+# ifdef FEAT_EVAL
+ (p->input_fn) ? '@' :
+# endif
+ '-';
return p->cmdfirstc;
}
#endif