aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-18 20:33:21 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-18 20:33:21 +0530
commit56dec17840c68a24e6734d0147db726e7be0bbfb (patch)
tree0a36c20f3ea45fca83ca6846a322e67d057a505f
parente25dc108bfa6adda73c4d4272a64cb0320d3983b (diff)
downloadnnn-56dec17840c68a24e6734d0147db726e7be0bbfb.tar.gz
Fix #735
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5684c00..0261828 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -723,7 +723,7 @@ static haiku_nm_h haiku_hnd;
/* Function macros */
#define tolastln() move(xlines - 1, 0)
-#define tocursor() move(cur + 2, 0)
+#define tocursor() move(cur + 2 - curscroll, 0)
#define exitcurses() endwin()
#define printwarn(presel) printwait(strerror(errno), presel)
#define istopdir(path) ((path)[1] == '\0' && (path)[0] == '/')