summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-25 21:52:39 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-25 21:52:39 +0200
commit74da39373c90fcb390068903b5bbb93ce7ac16fa (patch)
treede83fe0eaa8b08208b4d3181b52dbe13b35c6c8b
parentfbfb757d4cb19e14853605f70ac663e42ec74663 (diff)
downloadvim-git-8.1.1748.tar.gz
patch 8.1.1748: :args output is not alignedv8.1.1748
Problem: :args output is not aligned. Solution: Output a line break after the last item in a row.
-rw-r--r--src/version.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
index 9554f9be8..d1dde86a0 100644
--- 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, 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;
+ }
}
}