diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-05 23:22:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-05 23:22:07 +0200 |
commit | 860cae1cec85aeb06668a2b071727c43869acf15 (patch) | |
tree | 8f7b62b69f4a7d3340902178927bbc3f9d24cc3e /src/search.c | |
parent | 945e2dbb633ed29b697a8d4eea51672e3c11143b (diff) | |
download | vim-git-860cae1cec85aeb06668a2b071727c43869acf15.tar.gz |
Add the conceal patch from Vince Negri.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index 3ad9140c1..76ba6607e 100644 --- a/src/search.c +++ b/src/search.c @@ -1077,6 +1077,9 @@ do_search(oap, dirc, pat, count, options, tm) char_u *dircp; char_u *strcopy = NULL; char_u *ps; +#ifdef FEAT_CONCEAL + linenr_T oldline = curwin->w_cursor.lnum; +#endif /* * A line offset is not remembered, this is vi compatible. @@ -1422,6 +1425,13 @@ do_search(oap, dirc, pat, count, options, tm) setpcmark(); curwin->w_cursor = pos; curwin->w_set_curswant = TRUE; +#ifdef FEAT_CONCEAL + if (curwin->w_p_conceal && oldline != curwin->w_cursor.lnum) + { + update_single_line(curwin, oldline); + update_single_line(curwin, curwin->w_cursor.lnum); + } +#endif end_do_search: if (options & SEARCH_KEEP) |