mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-04 09:08:46 +00:00
completions/git: Work around read trimming whitespace
Since #6406, read will trim whitespace before the last variable. In this case there is only one variable, and the line looks like M CHANGELOG.md so it does indeed start with whitespace, and the whitespace is quite significant. Fixes #6650. [ci skip]
This commit is contained in:
parent
1ca529a3d4
commit
298f43b62e
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ function __fish_git_files
|
|||
# Note that we can't use space as a delimiter between status and filename, because
|
||||
# the status can contain spaces - " M" is different from "M ".
|
||||
__fish_git $git_opt status --porcelain -z $status_opt \
|
||||
| while read -lz line
|
||||
| while read -lz -d' ' line
|
||||
set -l desc
|
||||
# The entire line is the "from" from a rename.
|
||||
if set -q use_next[1]
|
||||
|
|
Loading…
Reference in a new issue