as the mouse support works better that way
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3689
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
-W/--wordbounds. Changes to usage(), nano.1, nanorc.5,
rnano.1, nano.texi, and nanorc.sample.in. (DLR)
- Fix mouse support so that it really ignores everything except
- releases of button 1 (i.e, left clicks). Changes to
+ releases and clicks of button 1. Changes to
enable_mouse_support() and get_mouseinput(). (DLR)
- browser.c:
do_browser()
if (getmouse(&mevent) == ERR)
return FALSE;
- /* If it's not a release of the first mouse button (i.e, a left
- * click), get out. */
- if (!(mevent.bstate & BUTTON1_RELEASED))
+ /* If it's not a release or click of the first mouse button, get
+ * out. */
+ if (!(mevent.bstate & (BUTTON1_RELEASED | BUTTON1_CLICKED)))
return FALSE;
/* Save the screen coordinates where the mouse event took place. */