]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix broken abort msg when starting in du mode
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 19 Feb 2020 13:34:51 +0000 (19:04 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 19 Feb 2020 13:34:51 +0000 (19:04 +0530)
src/nnn.c

index 7ce569e6515620e3024f70b13c68a5a415b1a548..a8e120b5c0fe76bc6d1462021a0ae47866f560d7 100644 (file)
--- 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 */