From 6c8f92c0927b4294ede4df502f177662df5cca0f Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 28 Jun 2006 23:27:07 +0000 Subject: [PATCH] cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/browser.c | 4 +--- src/help.c | 1 + src/prompt.c | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/browser.c b/src/browser.c index 2eae6bae..9c3d8b84 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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)) { diff --git a/src/help.c b/src/help.c index 934b0b94..2967343f 100644 --- a/src/help.c +++ b/src/help.c @@ -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; diff --git a/src/prompt.c b/src/prompt.c index 3fcc180e..3c961fdf 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -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 -- 2.39.5