diff options
author | Thomas White <taw@physics.org> | 2017-10-22 16:47:47 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-22 16:47:47 +0200 |
commit | fb8d372bbc8c0ddc392421f424aeaf78f6f4b5df (patch) | |
tree | 0c591c67c34ccc0e8a73e121ff8793fc6d6119fe | |
parent | 35ac667116aecec2847dd09c6950187fac0f9cdb (diff) |
Add show_edit_pos()
-rw-r--r-- | src/frame.c | 5 | ||||
-rw-r--r-- | src/frame.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index c778793..b41e596 100644 --- a/src/frame.c +++ b/src/frame.c @@ -630,6 +630,11 @@ static size_t text_para_pos(Paragraph *para, double x, double y, int *ptrail) } +void show_edit_pos(struct edit_pos a) +{ + printf("para %i, pos %li, trail %i\n", a.para, (long int)a.pos, a.trail); +} + int positions_equal(struct edit_pos a, struct edit_pos b) { diff --git a/src/frame.h b/src/frame.h index dbe79ef..3bc11f3 100644 --- a/src/frame.h +++ b/src/frame.h @@ -134,6 +134,7 @@ extern void render_paragraph(cairo_t *cr, Paragraph *para, ImageStore *is, extern SCBlock *get_newline_at_end(Paragraph *para); extern void set_newline_at_end(Paragraph *para, SCBlock *bl); extern void check_run(struct frame *fr, int pn); +extern void show_edit_pos(struct edit_pos a); extern void add_run(Paragraph *para, SCBlock *scblock, SCBlock *macro_real, size_t offs_bytes, size_t len_bytes, |