micro/internal
Dmitry Maluka 2d95064ff6 Make a pane active whenever any mouse button is pressed on it
Since now bufpane handles mouse move and release events generically and
separately from mouse press events, that creates a mess when we dispatch
a mouse press event to an inactive pane without making it active.

For example:
1. Click the right button on an inactive pane. It remains inactive.
2. Then click the left button on it. It becomes active, and an
unexpected text selection appears.
The reason is that the release event for the first click was dispatched
to a wrong pane - the (then) active one, so the (then) inactive pane
didn't get the release event and treats the second click not as a mouse
press but as a mouse move.

The simplest way to fix it is to avoid this scenario entirely, i.e.
always activate the pane when clicking any mouse button on it, not just
the left button.

For mouse wheel motion events we keep the existing behavior: the pane
gets the event but doesn't become active. Mouse wheel motion events are
not affected by the described issue, as they have no paired "release"
events.
2023-01-29 18:27:22 +01:00
..
action Make a pane active whenever any mouse button is pressed on it 2023-01-29 18:27:22 +01:00
buffer Reload settings when filetype is changed 2023-01-26 18:21:35 -08:00
clipboard Use zyedidia/clipper for external clipboard 2022-06-14 08:40:57 -04:00
config Add fakecursor option 2023-01-26 18:02:54 -08:00
display Fix incorrect LastVisualX after changing bufWidth w/o resize (#2629) 2022-12-02 17:49:06 -08:00
info Clear prompt before callback 2020-11-16 14:07:22 -05:00
lua Make more libraries available (#1917) 2020-11-21 01:46:17 -05:00
screen Reset mouse release state after restarting the screen 2023-01-29 18:26:55 +01:00
shell Use shell job for terminal callback 2022-08-19 15:46:01 -07:00
util Improve comments 2021-08-21 17:58:30 -04:00
views Fix unsplit crash 2020-02-08 21:06:13 -05:00