diff options
author | raichoo <raichoo@googlemail.com> | 2017-03-11 14:41:34 +0100 |
---|---|---|
committer | raichoo <raichoo@googlemail.com> | 2017-03-19 21:14:11 +0100 |
commit | 2ad25c04663da7d08da94db84dc6ded7df11ea87 (patch) | |
tree | 18db3e71c293d72854c095d723f1ea7f824eaf39 /src/nvim/cursor.c | |
parent | 86b1e7f5834d58eebc87735c9a531040fea1a0f7 (diff) | |
download | rneovim-2ad25c04663da7d08da94db84dc6ded7df11ea87.tar.gz rneovim-2ad25c04663da7d08da94db84dc6ded7df11ea87.tar.bz2 rneovim-2ad25c04663da7d08da94db84dc6ded7df11ea87.zip |
linter: make changes pass the linter
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index 01476627de..544bcf6ede 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -296,7 +296,8 @@ linenr_T get_cursor_rel_lnum(win_T *wp, linenr_T lnum) // Make sure "pos.lnum" and "pos.col" are valid in "buf". // This allows for the col to be on the NUL byte. -void check_pos(buf_T *buf, pos_T *pos) { +void check_pos(buf_T *buf, pos_T *pos) +{ char_u *line; colnr_T len; @@ -305,10 +306,11 @@ void check_pos(buf_T *buf, pos_T *pos) { } if (pos->col > 0) { - line = ml_get_buf(buf, pos->lnum, FALSE); + line = ml_get_buf(buf, pos->lnum, false); len = (colnr_T)STRLEN(line); - if (pos->col > len) + if (pos->col > len) { pos->col = len; + } } } |