aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-06-22 23:17:48 +0200
committerThomas White <taw@bitwiz.org.uk>2014-06-22 23:17:48 +0200
commit6ed61af726fb99384fb2d62e868489c1ccab6650 (patch)
tree95dc0889dce7d9614a9d849814c5bc442800db25 /src/wrap.c
parent0574767480272acc854a31d046cc92b5a5683d8a (diff)
SC debugging
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c8
1 files changed, 6 insertions, 2 deletions
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 ) {