From 6ed61af726fb99384fb2d62e868489c1ccab6650 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 22 Jun 2014 23:17:48 +0200 Subject: SC debugging --- src/wrap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/wrap.c') diff --git a/src/wrap.c b/src/wrap.c index b01fb82..d887c7b 100644 --- a/src/wrap.c +++ b/src/wrap.c @@ -171,13 +171,17 @@ void move_cursor_back(struct presentation *p) { int retreat = 0; signed int cp, cb, cl; - struct wrap_line *line = &p->cursor_frame->lines[p->cursor_line]; - struct wrap_box *box = &line->boxes[p->cursor_box]; + struct wrap_line *line; + struct wrap_box *box; cp = p->cursor_pos; cb = p->cursor_box; cl = p->cursor_line; + printf("moving back from %i %i %i\n", cl, cb, cp); + line = &p->cursor_frame->lines[p->cursor_line]; + box = &line->boxes[p->cursor_box]; + printf("box = %p\n", box); if ( box->type == WRAP_BOX_PANGO ) { if ( cp == 0 ) { -- cgit v1.2.3