mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
alt-p binding: don't add extra space character before pipe
This commit is contained in:
@@ -3,5 +3,9 @@ function __fish_paginate -d "Paginate the current command using the users defaul
|
||||
set -l cmd (__fish_anypager)
|
||||
or return 1
|
||||
|
||||
fish_commandline_append " &| $cmd"
|
||||
set -l pipe " &| $cmd"
|
||||
if string match -rq -- ' \n\.$' "$(commandline -j; echo .)"
|
||||
set pipe "&| $cmd"
|
||||
end
|
||||
fish_commandline_append $pipe
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user