src/nnn.c | 2 +- diff --git a/src/nnn.c b/src/nnn.c index 5684c00c1f54e9f7079adb3d40656e5382c65d82..026182829f8eceac9787cdd1c06299debc8041d7 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -723,7 +723,7 @@ #endif /* 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] == '/')