summaryrefslogtreecommitdiff
path: root/desktop/selection.c
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2005-04-17 03:30:35 +0000
committerAdrian Lees <adrian@aemulor.com>2005-04-17 03:30:35 +0000
commit452a27e74c159096f588e6d27dfabb3b6915ccaa (patch)
tree70de5a4d98b4436c1376b82a636b78a37d10a228 /desktop/selection.c
parent4cb3b99821c7fcafbe322ef456cabe96448d089a (diff)
downloadnetsurf-452a27e74c159096f588e6d27dfabb3b6915ccaa.tar.gz
netsurf-452a27e74c159096f588e6d27dfabb3b6915ccaa.tar.bz2
[project @ 2005-04-17 03:30:35 by adrianl]
Search text highlighting in browser windows svn path=/import/netsurf/; revision=1657
Diffstat (limited to 'desktop/selection.c')
-rw-r--r--desktop/selection.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/selection.c b/desktop/selection.c
index afec4180a..fc906f692 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -40,8 +40,6 @@ static inline bool before(const struct box *a, unsigned a_idx, unsigned b);
static bool redraw_handler(struct box *box, int offset, size_t length, void *handle);
static void selection_redraw(struct selection *s, unsigned start_idx, unsigned end_idx);
static unsigned selection_label_subtree(struct selection *s, struct box *node, unsigned idx);
-static void selection_set_start(struct selection *s, struct box *box, int idx);
-static void selection_set_end(struct selection *s, struct box *box, int idx);
static bool save_handler(struct box *box, int offset, size_t length, void *handle);
static bool traverse_tree(struct box *box, unsigned start_idx, unsigned end_idx,
seln_traverse_handler handler, void *handle);
@@ -656,7 +654,8 @@ void selection_set_end(struct selection *s, struct box *box, int idx)
bool selection_highlighted(struct selection *s, struct box *box,
unsigned *start_idx, unsigned *end_idx)
{
- assert(selection_defined(s)); /* caller should have checked for efficiency */
+ /* caller should have checked first for efficiency */
+ assert(selection_defined(s));
assert(s && box);
if (box->length > 0) {