mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-09 04:52:30 +08:00
[fzf#vim#preview] works with Windows default command (#441)
This commit is contained in:
committed by
Junegunn Choi
parent
0b0d9f0912
commit
df79877245
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user