]> granicus.if.org Git - vim/commitdiff
patch 8.1.1750: depending on the terminal width :version may miss a line break v8.1.1750
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Jul 2019 17:48:19 +0000 (19:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Jul 2019 17:48:19 +0000 (19:48 +0200)
Problem:    Depending on the terminal width :version may miss a line break.
Solution:   Add a line break when needed.

src/version.c

index 1a65cef769a581459c1f6a98a4c2901a259f459d..5c7507845a02dd38dae9b875e69f9a1576c6e082 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1750,
 /**/
     1749,
 /**/
@@ -4641,6 +4643,8 @@ list_version(void)
     version_msg(_("  Features included (+) or not (-):\n"));
 
     list_features();
+    if (msg_col > 0)
+       msg_putchar('\n');
 
 #ifdef SYS_VIMRC_FILE
     version_msg(_("   system vimrc file: \""));