From 153125149d217d866d6347f76f65345db46257c2 Mon Sep 17 00:00:00 2001 From: defanor Date: Sun, 25 Aug 2019 09:30:35 +0300 Subject: Merge search and selection This reduces code and state duplication, though it may be useful to refactor them further, possibly using a model similar to Emacs marks. --- src/documentbox.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/documentbox.h') diff --git a/src/documentbox.h b/src/documentbox.h index 64a2320..37b2909 100644 --- a/src/documentbox.h +++ b/src/documentbox.h @@ -36,11 +36,11 @@ typedef struct _DocumentBoxClass DocumentBoxClass; typedef struct _SelectionState SelectionState; struct _SelectionState { - IBText *selection_start; + InlineBox *selection_start; guint selection_start_index; - IBText *selection_end; + InlineBox *selection_end; guint selection_end_index; - IBText *selection_prev; + InlineBox *selection_prev; guint selection_prev_index; gboolean selection_active; gboolean selecting; -- cgit v1.2.3