]> Sergey Matveev's repositories - nnn.git/commitdiff
Preview-tui add -C to NNN_PAGER
authorLuuk van Baal <luukvbaal@gmail.com>
Wed, 14 Jun 2023 07:24:23 +0000 (09:24 +0200)
committerLuuk van Baal <luukvbaal@gmail.com>
Wed, 14 Jun 2023 07:24:23 +0000 (09:24 +0200)
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

index c6699513be696c636d7d9ede024eab19e16551ad..e78b110e6794876409dce7d4593bd20d1efdc809 100755 (executable)
@@ -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}"