summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 7a048e5d4..ddf1e5ce9 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -708,7 +708,7 @@ struct box * layout_line(struct box *first, int width, int *y,
for (i = 0; i != split_box->length &&
split_box->text[i] != ' '; i++)
;
- if (split_box->text[i] == ' ')
+ if (i != split_box->length)
space = i;
}