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

pull/1022/head
Derek Wyatt 2012-03-20 09:55:25 -04:00
parent e652756fdb
commit 92227f171a
1 changed files with 3 additions and 1 deletions

View File

@ -8,8 +8,10 @@ function resolveFile
{
if [ -f "$1" ]; then
echo $(readlink -f "$1")
elif [[ "${1#/}" == "$1" ]]; then
echo "$(pwd)/$1"
else
echo "$1"
echo $1
fi
}