]> git.wh0rd.org Git - nano.git/commitdiff
cosmetic fixes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 28 Jun 2006 23:27:07 +0000 (23:27 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 28 Jun 2006 23:27:07 +0000 (23:27 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/browser.c
src/help.c
src/prompt.c

index 2eae6bae0c310f333d56263984372fb6c1a4c016..9c3d8b8487cedad90aad9cafe91f88a94f682271 100644 (file)
@@ -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)) {
index 934b0b94e8c8eef51daee364aff3f645d3fd933f..2967343f6b9889eb02ae6474ce5ed4c0d10f8386 100644 (file)
@@ -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;
index 3fcc180e5d9ea7bfc18107187fc41204ad63b0e6..3c961fdf16168c476bef606f0b92872f959323a2 100644 (file)
@@ -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