changeset 17500:b7d85c5af64e v8.1.1748

patch 8.1.1748: :args output is not aligned commit https://github.com/vim/vim/commit/74da39373c90fcb390068903b5bbb93ce7ac16fa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 25 21:52:39 2019 +0200 patch 8.1.1748: :args output is not aligned Problem: :args output is not aligned. Solution: Output a line break after the last item in a row.
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Jul 2019 22:00:04 +0200
parents a44909886d08
children ee0183fdf5f8
files src/version.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1748,
+/**/
     1747,
 /**/
     1746,
@@ -4440,6 +4442,13 @@ list_in_columns(char_u **items, int size
 		    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;
+	}
     }
 }