mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Fix paginate binding (\ep) for multiline jobs
Reproducer: type `: \<RET><M-p>`. 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.
This commit is contained in:
committed by
Fabian Homborg
parent
e167714899
commit
d74b774f51
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user