]> granicus.if.org Git - vim/commitdiff
patch 8.1.1748: :args output is not aligned v8.1.1748
authorBram Moolenaar <Bram@vim.org>
Thu, 25 Jul 2019 19:52:39 +0000 (21:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 25 Jul 2019 19:52:39 +0000 (21:52 +0200)
Problem:    :args output is not aligned.
Solution:   Output a line break after the last item in a row.

src/version.c

index 9554f9be886b08560eb331cbc3891657088d7ba6..d1dde86a02704e86a718b638adbc826f69367306 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1748,
 /**/
     1747,
 /**/
@@ -4440,6 +4442,13 @@ list_in_columns(char_u **items, int size, int current)
                    msg_putchar(' ');
            }
        }
+       else
+       {
+           // this row is out of items, thus at the end of the row
+           if (msg_col > 0 && cur_row < nrow)
+               msg_putchar('\n');
+           ++cur_row;
+       }
     }
 }