aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-16 19:09:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-16 19:16:11 +0000
commite4a2d41f51785452ccb0bdb24ac5577203ff0da3 (patch)
treed051ad20558ba14b3d821a9158d7fd54541489be /render.c
parentselection: on_row_in_view() -> on_rows_in_view(), and now takes a range (diff)
selection: don't automatically no-op operations if selection isn't enabled
When the client is capturing the mouse, selection can only be done by holding done shift. This is why a lot of selection functions are no-ops if selection isn't currently enabled. However, there are many cases where we actually need to modify the selection. In particular, selection_cancel(). Thus, only check for enabled selection when we're dealing with user input. Bonus: this also fixes a bug where an ongoing selection were finalized as soon as the user released shift, even if he was still holding down the mouse button.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions