diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-08-19 08:14:31 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-08-19 08:14:31 +0200 |
commit | 93550c8bee5e3c914b5c5a1b5993d40f0033d117 (patch) | |
tree | 1e04a225009c7c0f043d2a2985a632520875e330 /libstorycode/gtk/gtknarrativeview.c | |
parent | 16daa2c43091242b142074405e0beeff16d2b133 (diff) |
WIPtmp
Diffstat (limited to 'libstorycode/gtk/gtknarrativeview.c')
-rw-r--r-- | libstorycode/gtk/gtknarrativeview.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstorycode/gtk/gtknarrativeview.c b/libstorycode/gtk/gtknarrativeview.c index 83d6d23..82dd138 100644 --- a/libstorycode/gtk/gtknarrativeview.c +++ b/libstorycode/gtk/gtknarrativeview.c @@ -885,6 +885,11 @@ static int find_cursor(Narrative *n, double x, double y, struct edit_pos *pos) pango_units_from_double(y - n->space_t - para_top(n, pos->para)), &pos->pos, &pos->trail); + /* pos->pos is the byte index into item->layout_text */ + //printf("click pos = %i\n", pos->pos); + //pos->pos = index_before_removal(item->chars_removed, item->n_chars_removed, pos->pos); + //printf("after adjustment: %i\n", pos->pos); + return 0; } |