mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-14 00:48:58 +08:00
Fix preview of paths starting with ~/ (#892)
This commit is contained in:
1 parent
359a80e3a3
commit
bce6588d24
1 file changed
+1
@@ -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