diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-01-25 16:31:59 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-01-26 14:45:48 +0100 |
commit | 2418aa3a4ac8f560373b940dbe0443fc79ab65ad (patch) | |
tree | 51fb57d9c67fecf9a93fdc8a5504f3770f42f8d3 /src/nvim/message.c | |
parent | df5534f576818b2e29f554e55c7ffc5c24ce732e (diff) | |
download | rneovim-2418aa3a4ac8f560373b940dbe0443fc79ab65ad.tar.gz rneovim-2418aa3a4ac8f560373b940dbe0443fc79ab65ad.tar.bz2 rneovim-2418aa3a4ac8f560373b940dbe0443fc79ab65ad.zip |
linter: fix issues
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 4bcc58fc99..c83c013225 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1523,20 +1523,22 @@ void msg_prt_line(char_u *s, int list) char_u *trail = NULL; int l; - if (curwin->w_p_list) - list = TRUE; + if (curwin->w_p_list) { + list = true; + } - /* find start of trailing whitespace */ + // find start of trailing whitespace if (list && curwin->w_p_lcs_chars.trail) { trail = s + STRLEN(s); - while (trail > s && ascii_iswhite(trail[-1])) - --trail; + while (trail > s && ascii_iswhite(trail[-1])) { + trail--; + } } - /* output a space for an empty line, otherwise the line will be - * overwritten */ - if (*s == NUL && !(list && curwin->w_p_lcs_chars.eol != NUL)) + // output a space for an empty line, otherwise the line will be overwritten + if (*s == NUL && !(list && curwin->w_p_lcs_chars.eol != NUL)) { msg_putchar(' '); + } while (!got_int) { if (n_extra > 0) { @@ -1565,7 +1567,7 @@ void msg_prt_line(char_u *s, int list) attr = 0; c = *s++; if (c == TAB && (!list || curwin->w_p_lcs_chars.tab1)) { - /* tab amount depends on current column */ + // tab amount depends on current column n_extra = curbuf->b_p_ts - col % curbuf->b_p_ts - 1; if (!list) { c = ' '; |