Skip to content
Browse files

Fixed: If you callvim on a non-existant file with a relative path, th…

…e CWD of the running gvim process is used, and that's not right. We use the PWD explicitly instead, in this case
  • Loading branch information...
1 parent f657216 commit 42066647804e8184b67a6d0ef110c9818d518e78 Derek Wyatt committed Mar 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 zsh_custom/plugins/vim-interaction/vim-interaction.plugin.zsh
View
4 zsh_custom/plugins/vim-interaction/vim-interaction.plugin.zsh
@@ -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
}

0 comments on commit 4206664

Please sign in to comment.
Something went wrong with that request. Please try again.