diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-23 05:42:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-23 08:07:00 +0000 |
| commit | dabdffafa59f43314333be42aa519d7fff1b4498 (patch) | |
| tree | 768ae24bdb5c817396865918e3739a8dbd49ac8d /selection.c | |
| parent | config: add user-configured search-binding to the correct binding list (diff) | |
don't use empty struct initializers
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/selection.c b/selection.c index cb8eb985..9062c606 100644 --- a/selection.c +++ b/selection.c @@ -325,7 +325,7 @@ selection_modify(struct terminal *term, struct coord start, struct coord end) assert(start.row != -1 && start.col != -1); assert(end.row != -1 && end.col != -1); - struct mark_context ctx = {}; + struct mark_context ctx = {0}; /* Premark all cells that *will* be selected */ foreach_selected(term, start, end, &premark_selected, &ctx); @@ -452,7 +452,7 @@ selection_dirty_cells(struct terminal *term) foreach_selected( term, term->selection.start, term->selection.end, &mark_selected, - &(struct mark_context){}); + &(struct mark_context){0}); } static void @@ -647,7 +647,7 @@ selection_cancel(struct terminal *term) if (term->selection.start.row >= 0 && term->selection.end.row >= 0) { foreach_selected( term, term->selection.start, term->selection.end, - &unmark_selected, &(struct mark_context){}); + &unmark_selected, &(struct mark_context){0}); render_refresh(term); } |
