mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 05:04:30 +08:00
Fix preview of paths starting with ~/ (#892)
This commit is contained in:
@@ -17,6 +17,7 @@ if [[ $1 =~ ^[A-Z]:\\ ]]; then
|
|||||||
CENTER=${INPUT[2]}
|
CENTER=${INPUT[2]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FILE="${FILE/#\~\//$HOME\/}"
|
||||||
if [ ! -r "$FILE" ]; then
|
if [ ! -r "$FILE" ]; then
|
||||||
echo "File not found ${FILE}"
|
echo "File not found ${FILE}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user