mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
Fixed: If you callvim on a non-existant file with a relative path, the CWD of the running gvim process is used, and that's not right. We use the PWD explicitly instead, in this case
This commit is contained in:
1 parent
cdea478f0f
commit
83071a10e7
1 file changed
+3
-1
@@ -8,8 +8,10 @@ function resolveFile
|
|||||||
{
|
{
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
echo $(readlink -f "$1")
|
echo $(readlink -f "$1")
|
||||||
|
elif [[ "${1#/}" == "$1" ]]; then
|
||||||
|
echo "$(pwd)/$1"
|
||||||
else
|
else
|
||||||
echo "$1"
|
echo $1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user