alt-p binding: don't add extra space character before pipe

This commit is contained in:
Johannes Altmanninger
2025-10-26 18:42:24 +01:00
parent 0f32866980
commit 461670c36a

View File

@@ -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