commit 42e271d2d37b16e2077bc0f31ea9dcae996ec571
parent 9c06f34ef964f470c16b5451e886843e4e775a1b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Wed, 15 Jun 2005 07:32:58 +0000
in do_browser(), make mouse clicks in the browser window work properly
when the MORE_SPACE flag is set
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2672 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git 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:
diff --git a/src/files.c b/src/files.c
@@ -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. */