aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index 2b312139..21969208 100644
--- a/selection.c
+++ b/selection.c
@@ -489,6 +489,7 @@ premark_selected(struct terminal *term, struct row *row, struct cell *cell,
for (int i = 0; i < ctx->empty_count + 1; i++)
row->cells[col - i].attrs.selected |= 2;
+ ctx->empty_count = 0;
return true;
}
@@ -520,6 +521,7 @@ mark_selected(struct terminal *term, struct row *row, struct cell *cell,
}
}
+ ctx->empty_count = 0;
return true;
}