]> granicus.if.org Git - vim/commitdiff
patch 8.0.0691: compiler warning without the linebreak feature v8.0.0691
authorBram Moolenaar <Bram@vim.org>
Thu, 29 Jun 2017 20:33:13 +0000 (22:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 29 Jun 2017 20:33:13 +0000 (22:33 +0200)
Problem:    Compiler warning without the linebreak feature.
Solution:   Add #ifdef. (John Marriott)

src/edit.c
src/version.c

index 912f05f38904eeafcee6d4cacc500ea8d40664c1..e08370863c30bab861fcce09fdc96e6ac03d7296 100644 (file)
@@ -7329,7 +7329,9 @@ oneleft(void)
 #ifdef FEAT_VIRTUALEDIT
     if (virtual_active())
     {
+# ifdef FEAT_LINEBREAK
        int width;
+# endif
        int v = getviscol();
 
        if (v == 0)
index 27f04365e41958303d8f38acf032eb8969ce385a..4e7558a4b42ad0f97e08cd4d74c0e24351813dff 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    691,
 /**/
     690,
 /**/