summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/selection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c
index 34478a4b9..af72870bb 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -514,7 +514,8 @@ bool traverse_tree(struct box *box, unsigned start_idx, unsigned end_idx,
}
box_length = box->length + box->space; /* include trailing space */
- if (num_space == NUMBER_SPACE(box->byte_offset)) {
+ if (num_space == NUMBER_SPACE(box->byte_offset) &&
+ box->type != BOX_BR) {
unsigned start_offset;
unsigned end_offset;