Mercurial > vim
comparison src/highlight.c @ 17486:bdf277d2d14c v8.1.1741
patch 8.1.1741: cleared/added match highlighting not updated in other window
commit https://github.com/vim/vim/commit/4ef18dcc2e3a6a9aea2dc90bbdb742c3c9231394
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 24 15:28:18 2019 +0200
patch 8.1.1741: cleared/added match highlighting not updated in other window
Problem: Cleared/added match highlighting not updated in other window.
(Andi Massimino)
Solution: Mark the right window for refresh.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Jul 2019 15:30:06 +0200 |
parents | 6cf077f59152 |
children | bba80d61ea73 |
comparison
equal
deleted
inserted
replaced
17485:356e91a3833a | 17486:bdf277d2d14c |
---|---|
3848 wp->w_match_head = m; | 3848 wp->w_match_head = m; |
3849 else | 3849 else |
3850 prev->next = m; | 3850 prev->next = m; |
3851 m->next = cur; | 3851 m->next = cur; |
3852 | 3852 |
3853 redraw_later(rtype); | 3853 redraw_win_later(wp, rtype); |
3854 return id; | 3854 return id; |
3855 | 3855 |
3856 fail: | 3856 fail: |
3857 vim_free(m); | 3857 vim_free(m); |
3858 return -1; | 3858 return -1; |
3930 vim_regfree(wp->w_match_head->match.regprog); | 3930 vim_regfree(wp->w_match_head->match.regprog); |
3931 vim_free(wp->w_match_head->pattern); | 3931 vim_free(wp->w_match_head->pattern); |
3932 vim_free(wp->w_match_head); | 3932 vim_free(wp->w_match_head); |
3933 wp->w_match_head = m; | 3933 wp->w_match_head = m; |
3934 } | 3934 } |
3935 redraw_later(SOME_VALID); | 3935 redraw_win_later(wp, SOME_VALID); |
3936 } | 3936 } |
3937 | 3937 |
3938 /* | 3938 /* |
3939 * Get match from ID 'id' in window 'wp'. | 3939 * Get match from ID 'id' in window 'wp'. |
3940 * Return NULL if match not found. | 3940 * Return NULL if match not found. |