mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +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]}
|
||||
fi
|
||||
|
||||
FILE="${FILE/#\~\//$HOME\/}"
|
||||
if [ ! -r "$FILE" ]; then
|
||||
echo "File not found ${FILE}"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user