]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #735
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 18 Sep 2020 15:03:21 +0000 (20:33 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 18 Sep 2020 15:03:21 +0000 (20:33 +0530)
src/nnn.c

index 5684c00c1f54e9f7079adb3d40656e5382c65d82..026182829f8eceac9787cdd1c06299debc8041d7 100644 (file)
--- 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] == '/')