diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-06-22 23:17:48 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-06-22 23:17:48 +0200 |
commit | 6ed61af726fb99384fb2d62e868489c1ccab6650 (patch) | |
tree | 95dc0889dce7d9614a9d849814c5bc442800db25 /src/wrap.c | |
parent | 0574767480272acc854a31d046cc92b5a5683d8a (diff) |
SC debugging
Diffstat (limited to 'src/wrap.c')
-rw-r--r-- | src/wrap.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 ) { |