diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-02-01 07:34:25 +0100 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-02-01 08:48:57 +0100 |
commit | cabf079ae4adb1770322be8da6f89e6d6a284086 (patch) | |
tree | e8d2a57bb3cfb5b7b99332ae35323fff4eebec84 /src | |
parent | 02cf813eff2282cdfce9cc9a9b997c1e16e38343 (diff) | |
download | rneovim-cabf079ae4adb1770322be8da6f89e6d6a284086.tar.gz rneovim-cabf079ae4adb1770322be8da6f89e6d6a284086.tar.bz2 rneovim-cabf079ae4adb1770322be8da6f89e6d6a284086.zip |
search: Fix linter errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/search.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index f2420e282c..379c33438b 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -523,10 +523,10 @@ int searchit( if (pos->col == MAXCOL) { start_char_len = 0; } else if (has_mbyte - && pos->lnum >= 1 && pos->lnum <= buf->b_ml.ml_line_count - && pos->col < MAXCOL - 2) { + && pos->lnum >= 1 && pos->lnum <= buf->b_ml.ml_line_count + && pos->col < MAXCOL - 2) { // Watch out for the "col" being MAXCOL - 2, used in a closed fold. - ptr = ml_get_buf(buf, pos->lnum, FALSE) + pos->col; + ptr = ml_get_buf(buf, pos->lnum, false) + pos->col; start_char_len = *ptr == NUL ? 1 : (*mb_ptr2len)(ptr); } else { start_char_len = 1; @@ -692,7 +692,7 @@ int searchit( == start_pos.lnum && (int)regmatch.startpos[0].col < (int)start_pos.col + extra_col)))) { - match_ok = TRUE; + match_ok = true; matchpos = regmatch.startpos[0]; endpos = regmatch.endpos[0]; submatch = first_submatch(®match); |