浏览代码

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

Derek Wyatt 12 年之前
父节点
当前提交
92227f171a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      plugins/vim-interaction/vim-interaction.plugin.zsh

+ 3 - 1
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
 }