nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 6c8f92c0927b4294ede4df502f177662df5cca0f
parent 2f94f42730800dbc1a2c27b52ead2fadd6bd00ea
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed, 28 Jun 2006 23:27:07 +0000

cosmetic fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/browser.c | 4+---
Msrc/help.c | 1+
Msrc/prompt.c | 8++++----
3 files changed, 6 insertions(+), 7 deletions(-)

diff --git 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 @@ -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 @@ -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