cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
2f94f42730
commit
6c8f92c092
|
@ -108,10 +108,8 @@ char *do_browser(char *path, DIR *dir)
|
|||
case KEY_MOUSE:
|
||||
{
|
||||
int mouse_x, mouse_y;
|
||||
bool retval = get_mouseinput(&mouse_x, &mouse_y,
|
||||
TRUE);
|
||||
|
||||
if (!retval) {
|
||||
if (!get_mouseinput(&mouse_x, &mouse_y, TRUE)) {
|
||||
/* We can click in the edit window to select a
|
||||
* file. */
|
||||
if (wenclose(edit, mouse_y, mouse_x)) {
|
||||
|
|
|
@ -101,6 +101,7 @@ void do_help(void (*refresh_func)(void))
|
|||
case KEY_MOUSE:
|
||||
{
|
||||
int mouse_x, mouse_y;
|
||||
|
||||
get_mouseinput(&mouse_x, &mouse_y, TRUE);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -1310,10 +1310,10 @@ int do_yesno_prompt(bool all, const char *msg)
|
|||
case KEY_MOUSE:
|
||||
get_mouseinput(&mouse_x, &mouse_y, FALSE);
|
||||
|
||||
if (mouse_x != -1 && mouse_y != -1 && !ISSET(NO_HELP) &&
|
||||
wenclose(bottomwin, mouse_y, mouse_x) &&
|
||||
mouse_x < (width * 2) && mouse_y - (2 -
|
||||
no_more_space()) - editwinrows - 1 >= 0) {
|
||||
if (wenclose(bottomwin, mouse_y, mouse_x) &&
|
||||
!ISSET(NO_HELP) && mouse_x < (width * 2) &&
|
||||
mouse_y - (2 - no_more_space()) -
|
||||
editwinrows - 1 >= 0) {
|
||||
int x = mouse_x / width;
|
||||
/* Calculate the x-coordinate relative to the
|
||||
* two columns of the Yes/No/All shortcuts in
|
||||
|
|
Loading…
Reference in New Issue