]> git.wh0rd.org Git - nano.git/commitdiff
in do_browser(), make mouse clicks in the browser window work properly
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 15 Jun 2005 07:32:58 +0000 (07:32 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 15 Jun 2005 07:32:58 +0000 (07:32 +0000)
when the MORE_SPACE flag is set

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

ChangeLog
src/files.c

index 9235ed9bdac607c9aa845fb6c8f75170aad41987..6d5d1c54ea9a9d052ff143557be016a9f6c59a8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -128,6 +128,8 @@ CVS code -
          (DLR)
        - Rename variable selectedbackup to old_selected, for
          consistency. (DLR)
+       - Make mouse clicks in the browser window work properly when the
+         MORE_SPACE flag is set. (DLR)
   save_history()
        - Properly save history when in view mode. (DLR)
 - global.c:
index 6e28b88c5a844a780d80837057ef5fbac3233aff..9eec78880ae1231192989ca108dfe555af22408c 100644 (file)
@@ -2527,7 +2527,7 @@ char *do_browser(char *path, DIR *dir)
                if (wenclose(edit, mevent.y, mevent.x)) {
                    int old_selected = selected;
 
-                   mevent.y -= 2;
+                   mevent.y -= 2 - no_more_space();
 
                    /* longest is the width of each column.  There are
                     * two spaces between each column. */