aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2018-03-07 20:12:20 +0100
committerThomas White <taw@bitwiz.org.uk>2018-03-07 20:12:20 +0100
commitb432a0ac4562b4ddc1a877d044fdd9490189699d (patch)
tree42c11f0ebc75104dca959f144f438c92263d17df /src/sc_editor.c
parentf4c56706bc083f9792420fb1af2ae8cdf9651bb7 (diff)
Remove len_bytes from add_run
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 6e03eb2..366b561 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -838,8 +838,8 @@ static void insert_text(char *t, SCEditor *e)
fprintf(stderr, "Failed to insert paragraph\n");
return;
}
- add_run(pnew, ad, ad, strlen(t),
- e->cursor_frame->fontdesc, e->cursor_frame->col);
+ add_run(pnew, ad, ad, e->cursor_frame->fontdesc,
+ e->cursor_frame->col);
wrap_frame(e->cursor_frame, e->pc);
@@ -1061,7 +1061,7 @@ static void check_paragraph(struct frame *fr, PangoContext *pc,
}
scblocks = sc_block_append(scblocks, NULL, NULL, strdup(""), NULL);
- add_run(para, scblocks, scblocks, 0, fr->fontdesc, fr->col);
+ add_run(para, scblocks, scblocks, fr->fontdesc, fr->col);
wrap_paragraph(para, pc, fr->w - fr->pad_l - fr->pad_r, 0, 0);
}