selection: remove selection_enabled()

Its name did not reflect its semantics. Since it was only used in a
single place, “inline” it there, and get rid of it.
This commit is contained in:
Daniel Eklöf 2021-02-02 09:52:22 +01:00
parent d6b1dbf8d9
commit eff8481cdc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 12 deletions

View file

@ -2570,7 +2570,10 @@ term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
const char *xcursor
= seat->pointer.hidden ? XCURSOR_HIDDEN
: term->is_searching ? XCURSOR_LEFT_PTR
: selection_enabled(term, seat) ? XCURSOR_TEXT
: (seat->mouse.col >= 0 &&
seat->mouse.row >= 0 &&
term_mouse_grabbed(term, seat)) ? XCURSOR_TEXT
: term->is_searching ? XCURSOR_TEXT
: XCURSOR_LEFT_PTR;
render_xcursor_set(seat, term, xcursor);