aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 7ce569e..a8e120b 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4862,6 +4862,9 @@ static bool browse(char *ipath, const char *session)
atexit(dentfree);
+ xlines = LINES;
+ xcols = COLS;
+
/* setup first context */
if (!session || !load_session(session, &path, &lastdir, &lastname, FALSE)) {
xstrlcpy(g_ctx[0].c_path, ipath, PATH_MAX); /* current directory */