aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-04 09:59:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-04 09:59:15 +0000
commitaa01521ff668f201ba4297bf0558a76835144cb5 (patch)
treeb6df7fa039b2d6751a943c1dab9bc2c8fe59190c /input.c
parentinput: hardcoded left mouse button handler requires click-count <= 3 (diff)
selection: add selection_extend()
This function extends an existing selection in the following way: If the extension point is *before* the upper boundary of the current selection, extend the selection upwards. If the extension point is *after* the bottom boundary of the current selection, extend the selection downwards. If the extension point is *inside* the current selection, shrink the selection such that the new size is maximized. This means we move the *closest* start/end point from in the current selection.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions