83071a10e7bcb398269be37a77dd929cb9182434
Author Derek Wyatt <dwyatt@rim.com> Committer Phil Eichinger <phil@zankapfel.net> Date 2014-03-25 15:47 UTC
Message 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
Diff 1 diff --git a/plugins/vim-interaction/vim-interaction.plugin.zsh b/plugins/vim-interaction/vim-interaction.plugin.zsh
2 index 3f346dfc371c37049a3ef51b689b9b1aaf20ae2a..309012b34a2b418a54c97cc0a021a2315a1fb17f 100644
3 --- a/plugins/vim-interaction/vim-interaction.plugin.zsh
4 +++ b/plugins/vim-interaction/vim-interaction.plugin.zsh
5 @@ -8,8 +8,10 @@ function resolveFile
6 {
7 if [ -f "$1" ]; then
8 echo $(readlink -f "$1")
9 + elif [[ "${1#/}" == "$1" ]]; then
10 + echo "$(pwd)/$1"
11 else
12 - echo "$1"
13 + echo $1
14 fi
15 }
16