From 05990dc9e5f4c6ade39d0dc273a055960f36e4e1 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Wed, 14 Jun 2023 09:24:23 +0200 Subject: [PATCH] Preview-tui add -C to NNN_PAGER This makes it so that when the paged text is fewer lines than the preview pane, it is placed at the top instead of at the bottom --- plugins/preview-tui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/preview-tui b/plugins/preview-tui index c6699513..e78b110e 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -99,7 +99,7 @@ ENVVARS=( "NNN_SCOPE=${NNN_SCOPE:-0}" "NNN_PISTOL=${NNN_PISTOL:-0}" "NNN_ICONLOOKUP=${NNN_ICONLOOKUP:-0}" - "NNN_PAGER=${NNN_PAGER:-less -P?n -R}" + "NNN_PAGER=${NNN_PAGER:-less -P?n -R -C}" "NNN_BATTHEME=${NNN_BATTHEME:-ansi}" "NNN_BATSTYLE=${NNN_BATSTYLE:-numbers}" "NNN_PREVIEWWIDTH=${NNN_PREVIEWWIDTH:-1920}"