git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Regression.
[profile.git]
/
.vim
/
script
/
svn
diff --git
a/.vim/script/svn
b/.vim/script/svn
index
175f4fb
..
92cc8a5
100644
(file)
--- a/
.vim/script/svn
+++ b/
.vim/script/svn
@@
-23,7
+23,12
@@
fun! SVNcommit()
set buftype=nowrite
set bufhidden=hide
setlocal noswapfile
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]
file [svn diff]
+ cd l:cwd
" Switch back to the top window.
wincmd k
" Switch back to the top window.
wincmd k
@@
-33,9
+38,6
@@
endfun
let s:cmdheight = &cmdheight
se cmdheight=3
let s:cmdheight = &cmdheight
se cmdheight=3
-" Change directory so "file [svn diff]" doesn't try to cd somewhere.
-cd /
-
" Call and then discard our function.
call SVNcommit()
delfunction SVNcommit
" Call and then discard our function.
call SVNcommit()
delfunction SVNcommit