vim-patch:8.1.1201: output of :command is hard to read

Problem:    Output of :command is hard to read.
Solution:   Make some columns wider, some narrower.  Truncate the command when
            listing all.
725310d89e
This commit is contained in:
Jan Edmund Lazo
2019-10-30 00:56:49 -04:00
parent 986eafce47
commit 7955c05acc
6 changed files with 80 additions and 43 deletions

View File

@@ -3361,7 +3361,7 @@ showmap (
msg_putchar(' ');
// Display the LHS. Get length of what we write.
len = (size_t)msg_outtrans_special(mp->m_keys, true);
len = (size_t)msg_outtrans_special(mp->m_keys, true, 0);
do {
msg_putchar(' '); /* padd with blanks */
++len;
@@ -3389,7 +3389,7 @@ showmap (
// as typeahead.
char_u *s = vim_strsave(mp->m_str);
vim_unescape_csi(s);
msg_outtrans_special(s, FALSE);
msg_outtrans_special(s, false, 0);
xfree(s);
}
if (p_verbose > 0) {