aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-03-28 17:36:33 +0200
committerThomas White <taw@bitwiz.org.uk>2016-03-28 17:36:33 +0200
commit10b73d26ba94ead1021106df4e9886335d28eb7b (patch)
tree138eb5f274f8a6c46089fcf7a7f51a03affc5bb8 /src/sc_editor.c
parent13ab84211488aa422c43756737664dec62bebb90 (diff)
Fixed flowed height (and reduce spaces between paragraphs)
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 9b81980..1658122 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -98,7 +98,7 @@ static void update_size(SCEditor *e)
{
if ( e->flow ) {
e->w = e->top->w;
- e->h = total_height(e->top);
+ e->h = total_height(e->top) + e->top->pad_t + e->top->pad_b;
e->log_w = e->w;
e->log_h = e->h;
e->top->h = e->h;