]> Sergey Matveev's repositories - nnn.git/blobdiff - src/nnn.c
Clear less'es screen
[nnn.git] / src / nnn.c
index 2d9f6dbc5cacdbff78f1c58192df04c4e61a5952..16ada363c59ffd75309e7bac832f81196ad5c140 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7501,7 +7501,7 @@ nochange:
                                continue;
                        case SEL_VIEW:
                                if (!(g_state.picker || g_state.fifomode))
-                                       spawn(pager, newpath, NULL, NULL, F_CLI);
+                                       spawn("less --clear-screen", newpath, NULL, NULL, F_CLI);
                                continue;
                        default: /* SEL_LOCK */
                                lock_terminal();