2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00

fix(git_query): get_modified_file handle space in preview

This commit is contained in:
kevin zhuang 2020-06-22 10:13:23 +10:00
parent bf2e5ac3ef
commit adfb6b9edc

View File

@ -138,7 +138,7 @@ function get_modified_file() {
}
}' \
| fzf --header="${header}" --preview "echo {} \
| awk '{print \$2}' \
| awk '{sub(\$1 FS,\"\");print \$0}' \
| xargs -I __ /usr/bin/git --git-dir=${DOTBARE_DIR} --work-tree=${DOTBARE_TREE} \
diff HEAD --color=always -- ${DOTBARE_TREE}/__" \
| awk -v home="${DOTBARE_TREE}" -v format="${output_format}" '{