diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-12-17 23:55:02 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-12-17 23:55:02 +0000 |
commit | 355799ce0bbb078237dfc1ae9874bbc5342acbc4 (patch) | |
tree | 7ca980c01c0d4d1d55a3b7b15418c95c5618afae /render/textplain.c | |
parent | 4346b2b62b940182575e6612e46234355afa083c (diff) | |
download | netsurf-355799ce0bbb078237dfc1ae9874bbc5342acbc4.tar.gz netsurf-355799ce0bbb078237dfc1ae9874bbc5342acbc4.tar.bz2 |
Merge branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9729
Diffstat (limited to 'render/textplain.c')
-rw-r--r-- | render/textplain.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/render/textplain.c b/render/textplain.c index 05d2fbe33..07f37610c 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -34,6 +34,7 @@ #include "desktop/gui.h" #include "desktop/options.h" #include "desktop/plotters.h" +#include "desktop/search.h" #include "desktop/selection.h" #include "render/box.h" #include "render/font.h" @@ -437,11 +438,14 @@ bool textplain_redraw(struct content *c, int x, int y, highlighted = true; } - if (!highlighted && search_current_window == bw->window) { + if (!highlighted && (bw->search_context + != NULL)) { unsigned start_idx, end_idx; - if (gui_search_term_highlighted(bw->window, - tab_ofst, tab_ofst + 1, - &start_idx, &end_idx)) + if (gui_search_term_highlighted( + bw->window, + tab_ofst, tab_ofst + 1, + &start_idx, &end_idx, + bw->search_context)) highlighted = true; } |