]> Sergey Matveev's repositories - nnn.git/commitdiff
Clear less'es screen master
authorSergey Matveev <stargrave@stargrave.org>
Tue, 31 Oct 2023 16:35:10 +0000 (19:35 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 4 Dec 2023 12:58:01 +0000 (15:58 +0300)
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();