diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-09-21 13:51:28 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-09-21 13:51:28 +0200 |
commit | 8ebf692bcd8ef5f949afb01e777e58ee607533c4 (patch) | |
tree | 529fe4f6f18c4559350f302f9c474a6b2481b627 | |
parent | b017dba2f888d7f98b1ca85b62227d78a5ce742a (diff) |
Update the size of flowed frames on insert
-rw-r--r-- | src/sc_editor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index f00ad28..4b4a601 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -644,6 +644,7 @@ static void insert_text(char *t, SCEditor *e) wrap_paragraph(para, NULL, e->cursor_frame->w - e->cursor_frame->pad_l - e->cursor_frame->pad_r); + if ( e->flow ) update_size(e); cursor_moveh(e->cursor_frame, &e->cursor_para, &e->cursor_pos, &e->cursor_trail, +1); |