Commit 42e271d2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
...@@ -128,6 +128,8 @@ CVS code - ...@@ -128,6 +128,8 @@ CVS code -
(DLR) (DLR)
- Rename variable selectedbackup to old_selected, for - Rename variable selectedbackup to old_selected, for
consistency. (DLR) consistency. (DLR)
- Make mouse clicks in the browser window work properly when the
MORE_SPACE flag is set. (DLR)
save_history() save_history()
- Properly save history when in view mode. (DLR) - Properly save history when in view mode. (DLR)
- global.c: - global.c:
......
...@@ -2527,7 +2527,7 @@ char *do_browser(char *path, DIR *dir) ...@@ -2527,7 +2527,7 @@ char *do_browser(char *path, DIR *dir)
if (wenclose(edit, mevent.y, mevent.x)) { if (wenclose(edit, mevent.y, mevent.x)) {
int old_selected = selected; int old_selected = selected;
mevent.y -= 2; mevent.y -= 2 - no_more_space();
/* longest is the width of each column. There are /* longest is the width of each column. There are
* two spaces between each column. */ * two spaces between each column. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment