aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/up-or-search.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/up-or-search.fish')
-rw-r--r--share/functions/up-or-search.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/functions/up-or-search.fish b/share/functions/up-or-search.fish
index fc51d710..98179ad7 100644
--- a/share/functions/up-or-search.fish
+++ b/share/functions/up-or-search.fish
@@ -5,6 +5,12 @@ function up-or-search -d "Depending on cursor position and current mode, either
return
end
+ # If we are navigating the pager, then up always navigates
+ if commandline --paging-mode
+ commandline -f up-line
+ return
+ end
+
# We are not already in search mode.
# If we are on the top line, start search mode,
# otherwise move up