Okay, now let unjustify work with the mouse too :P

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@641 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2001-05-06 02:34:31 +00:00
parent 051fc6e05a
commit 5f07180e8a
1 changed files with 13 additions and 0 deletions

13
nano.c
View File

@ -2011,6 +2011,19 @@ int do_justify(void)
/* Now get a keystroke and see if it's unjustify; if not, unget the keystroke /* Now get a keystroke and see if it's unjustify; if not, unget the keystroke
and return */ and return */
#ifndef DISABLE_MOUSE
#ifdef NCURSES_MOUSE_VERSION
/* If it was a mouse click, parse it with do_mouse and it might become
the unjustify key. Else give it back to the input stream. */
if ((kbinput = wgetch(edit)) == KEY_MOUSE)
do_mouse();
else
ungetch(kbinput);
#endif
#endif
if ((kbinput = wgetch(edit)) != NANO_UNJUSTIFY_KEY) { if ((kbinput = wgetch(edit)) != NANO_UNJUSTIFY_KEY) {
ungetch(kbinput); ungetch(kbinput);
blank_statusbar_refresh(); blank_statusbar_refresh();