Fix: empty line showing up when when adding files

This commit is contained in:
sandroid 2024-04-25 22:51:05 +02:00
parent 6ff00ab7b0
commit 1627440394
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -171,7 +171,7 @@ _forgit_list_files() {
# merge conflict.
# With the -z flag, git also uses \0 line termination, so we
# have to replace the terminators.
git ls-files -z "$@" "$rootdir" | uniq | tr '\0' '\n'
git ls-files -z "$@" "$rootdir" | tr '\0' '\n' | uniq
}
_forgit_log_preview() {