aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-09-21 13:51:28 +0200
committerThomas White <taw@bitwiz.org.uk>2016-09-21 13:51:28 +0200
commit8ebf692bcd8ef5f949afb01e777e58ee607533c4 (patch)
tree529fe4f6f18c4559350f302f9c474a6b2481b627 /src
parentb017dba2f888d7f98b1ca85b62227d78a5ce742a (diff)
Update the size of flowed frames on insert
Diffstat (limited to 'src')
-rw-r--r--src/sc_editor.c1
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);