From cf053b7e09eb9c9add4564c792b90cd422c0df7d Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 2 Aug 2024 20:10:37 +0900 Subject: [PATCH] ui: print :builtin pager suggestion as a hint --- cli/src/ui.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/ui.rs b/cli/src/ui.rs index 70d5180d5..3adbbad45 100644 --- a/cli/src/ui.rs +++ b/cli/src/ui.rs @@ -333,10 +333,11 @@ impl Ui { // The pager executable couldn't be found or couldn't be run writeln!( self.warning_default(), - "Failed to spawn pager '{name}': {e}. Consider using the `:builtin` pager.", + "Failed to spawn pager '{name}': {e}", name = self.pager_cmd.split_name(), ) .ok(); + writeln!(self.hint_default(), "Consider using the `:builtin` pager.").ok(); }) .ok() };