mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: selection_cancel() now sets 'kind' to SELECTION_NONE
This commit is contained in:
parent
f12b1473fd
commit
2a531327dd
2 changed files with 6 additions and 1 deletions
|
|
@ -126,6 +126,10 @@ foreach_selected(
|
|||
|
||||
case SELECTION_BLOCK:
|
||||
return foreach_selected_block(term, cb, data);
|
||||
|
||||
case SELECTION_NONE:
|
||||
assert(false);
|
||||
return;
|
||||
}
|
||||
|
||||
assert(false);
|
||||
|
|
@ -319,6 +323,7 @@ selection_cancel(struct terminal *term)
|
|||
render_refresh(term);
|
||||
}
|
||||
|
||||
term->selection.kind = SELECTION_NONE;
|
||||
term->selection.start = (struct coord){-1, -1};
|
||||
term->selection.end = (struct coord){-1, -1};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ enum mouse_reporting {
|
|||
|
||||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
|
||||
|
||||
enum selection_kind { SELECTION_NORMAL, SELECTION_BLOCK };
|
||||
enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
|
||||
|
||||
struct ptmx_buffer {
|
||||
void *data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue