diff options
-rw-r--r-- | desktop/selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 5633b1823..f4f44e117 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -1153,7 +1153,7 @@ bool save_handler(const char *text, size_t length, struct box *box, assert(sv); - if (box->space > 0) + if (box && (box->space > 0)) space = 1; if (whitespace_text) |