From 6689df024bce4309ec5884e445738fe07ee4ffcc Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 22 Jun 2022 18:14:29 +0100 Subject: patch 8.2.5149: cannot build without the +eval feature Problem: Cannot build without the +eval feature. (Tony Mechelynck) Solution: Add #ifdefs. --- src/ex_getln.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index b499aba141..8dc03dc336 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1206,7 +1206,9 @@ cmdline_insert_reg(int *gotesc UNUSED) { int i; int c; +#ifdef FEAT_EVAL int save_new_cmdpos = new_cmdpos; +#endif #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; // disallow scrolling here @@ -1265,7 +1267,9 @@ cmdline_insert_reg(int *gotesc UNUSED) } #endif } +#ifdef FEAT_EVAL new_cmdpos = save_new_cmdpos; +#endif // remove the double quote redrawcmd(); -- cgit v1.2.3