changeset 11617:1d6bcb9ff291 v8.0.0691

patch 8.0.0691: compiler warning without the linebreak feature commit https://github.com/vim/vim/commit/a83fe75ca76f6f74daa1e5a620054b973b43379b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 29 22:33:13 2017 +0200 patch 8.0.0691: compiler warning without the linebreak feature Problem: Compiler warning without the linebreak feature. Solution: Add #ifdef. (John Marriott)
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Jun 2017 22:45:03 +0200
parents 48ca57b8b2a7
children 81f5dcfbce26
files src/edit.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -7329,7 +7329,9 @@ oneleft(void)
 #ifdef FEAT_VIRTUALEDIT
     if (virtual_active())
     {
+# ifdef FEAT_LINEBREAK
 	int width;
+# endif
 	int v = getviscol();
 
 	if (v == 0)
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    691,
+/**/
     690,
 /**/
     689,