From 56dec17840c68a24e6734d0147db726e7be0bbfb Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 18 Sep 2020 20:33:21 +0530 Subject: Fix #735 --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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] == '/') -- cgit v1.2.3-70-g09d2