mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
DRYer
This commit is contained in:
@@ -323,7 +323,7 @@ func show_usage(cmd *cobra.Command) error {
|
||||
}
|
||||
output_text := output.String()
|
||||
if stdout_is_terminal && cmd.Annotations["allow-pager"] != "no" {
|
||||
pager := exec.Command("less", "-iRXF");
|
||||
pager := exec.Command(kitty.DefaultPager[0], kitty.DefaultPager[1:]...);
|
||||
pager.Stdin = strings.NewReader(output_text)
|
||||
pager.Stdout = os.Stdout
|
||||
pager.Stderr = os.Stderr
|
||||
|
||||
Reference in New Issue
Block a user