diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-16 19:16:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-16 19:16:35 +0000 |
| commit | e3992b8379e24f4c9ed1cc020483d8363958df58 (patch) | |
| tree | 510d74bc36d9b3f76744728bf0454f1e5d225b6d | |
| parent | selection: don't automatically no-op operations if selection isn't enabled (diff) | |
selection: update: don't assert on 'start' being set
| -rw-r--r-- | selection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/selection.c b/selection.c index 811b71a5..7e5a12ab 100644 --- a/selection.c +++ b/selection.c @@ -389,6 +389,7 @@ selection_modify(struct terminal *term, struct coord start, struct coord end) void selection_update(struct terminal *term, int col, int row) { + if (term->selection.start.row == -1) return; LOG_DBG("selection updated: start = %d,%d, end = %d,%d -> %d, %d", |
