[fzf#vim#preview] works with Windows default command (#441)

This commit is contained in:
Jan Edmund Lazo
2017-09-04 09:50:37 -04:00
committed by Junegunn Choi
parent 0b0d9f0912
commit df79877245
2 changed files with 7 additions and 6 deletions

View File

@@ -17,6 +17,11 @@ IFS=':' read -r -a INPUT <<< "$1"
FILE=${INPUT[0]}
CENTER=${INPUT[1]}
if [[ $1 =~ ^[A-Z]:\\ ]]; then
FILE=$FILE:${INPUT[1]}
CENTER=${INPUT[2]}
fi
if [ ! -r "$FILE" ]; then
echo "File not found ${FILE}"
exit 1