diff options
Diffstat (limited to 'src/nvim/match.c')
-rw-r--r-- | src/nvim/match.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/match.c b/src/nvim/match.c index 7543fb2b9d..013ab3e6f0 100644 --- a/src/nvim/match.c +++ b/src/nvim/match.c @@ -450,10 +450,8 @@ static void next_search_hl(win_T *win, match_T *search_hl, match_T *shl, linenr_ } else if (vim_strchr(p_cpo, CPO_SEARCH) == NULL || (shl->rm.endpos[0].lnum == 0 && shl->rm.endpos[0].col <= shl->rm.startpos[0].col)) { - char *ml; - matchcol = shl->rm.startpos[0].col; - ml = ml_get_buf(shl->buf, lnum) + matchcol; + char *ml = ml_get_buf(shl->buf, lnum) + matchcol; if (*ml == NUL) { matchcol++; shl->lnum = 0; |