diff options
author | ZviRackover <zvirack@gmail.com> | 2018-09-02 02:14:47 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-09-09 10:45:50 +0300 |
commit | 329cfc3303cffd5c9aad7b2ad7f4323354d68b0d (patch) | |
tree | e9abce8472ef283396c7830947c56e1d6154ef86 /src/nvim/ex_getln.c | |
parent | ac13e65ae0ce98516e816ba4fcf468d19e750c30 (diff) | |
download | rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.tar.gz rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.tar.bz2 rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.zip |
lint: clean-up after parent commits
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 15308692e1..c2559e051d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1765,7 +1765,6 @@ static int command_line_handle_key(CommandLineState *s) s->j = utf_char2bytes(s->c, IObuff); IObuff[s->j] = NUL; // exclude composing chars put_on_cmdline(IObuff, s->j, true); - } return command_line_changed(s); } @@ -2369,10 +2368,10 @@ redraw: c1 = '?'; } len = utf_char2bytes(c1, (char_u *)line_ga.ga_data + line_ga.ga_len); - if (c1 == '\n') + if (c1 == '\n') { msg_putchar('\n'); - else if (c1 == TAB) { - /* Don't use chartabsize(), 'ts' can be different */ + } else if (c1 == TAB) { + // Don't use chartabsize(), 'ts' can be different. do { msg_putchar(' '); } while (++vcol % 8); @@ -2891,9 +2890,9 @@ static void draw_cmdline(int start, int len) newlen += utf_char2bytes(u8c, arshape_buf + newlen); if (u8cc[0] != 0) { newlen += utf_char2bytes(u8cc[0], arshape_buf + newlen); - if (u8cc[1] != 0) - newlen += utf_char2bytes(u8cc[1], - arshape_buf + newlen); + if (u8cc[1] != 0) { + newlen += utf_char2bytes(u8cc[1], arshape_buf + newlen); + } } } else { prev_c = u8c; |