Latest attempt to fix commit diffs.
authorIain Patterson <me@iain.cx>
Tue, 16 Jun 2009 11:09:38 +0000 (12:09 +0100)
committerIain Patterson <me@iain.cx>
Tue, 16 Jun 2009 11:10:47 +0000 (12:10 +0100)
.vim/script/p4
.vim/script/svn

index 59e28a1..8b6ee16 100644 (file)
@@ -37,12 +37,7 @@ fun! P4submit()
         set buftype=nowrite
         set bufhidden=hide
         setlocal noswapfile
-
-        " Change directory so "file [p4 diff]" doesn't try to cd somewhere.
-        let l:cwd=getcwd()
-        cd /
-        file [p4 diff]
-        cd l:cwd
+        file [p4 diff\]
 
         " Switch back to the top window and put the cursor by the description.
         wincmd k
index 92cc8a5..bb05173 100644 (file)
@@ -23,12 +23,7 @@ fun! SVNcommit()
   set buftype=nowrite
   set bufhidden=hide
   setlocal noswapfile
-
-  " Change directory so "file [svn diff]" doesn't try to cd somewhere.
-  let l:cwd=getcwd()
-  cd /
-  file [svn diff]
-  cd l:cwd
+  file [svn diff\]
 
   " Switch back to the top window.
   wincmd k