From d74b774f51d3e47cbe694f7b23aa900aede4d1b0 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 1 Oct 2019 19:10:01 +0200 Subject: [PATCH] Fix paginate binding (\ep) for multiline jobs Reproducer: type `: \`. This used to print an error due to builtin test receiving too many arguments. It looks like (commandline -j) can return multiple items, because a job can be broken up in multiple lines terminated by backslashes. --- share/functions/__fish_paginate.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_paginate.fish b/share/functions/__fish_paginate.fish index 937c5c6de..ae7ae896f 100644 --- a/share/functions/__fish_paginate.fish +++ b/share/functions/__fish_paginate.fish @@ -5,7 +5,7 @@ function __fish_paginate -d "Paginate the current command using the users defaul set cmd $PAGER end - if test -z (commandline -j) + if test -z (commandline -j | string join '') commandline -a $history[1] end