X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fsvn;h=d5244fb1d185b5453bc7519c8f4b8d1e999ca498;hb=fc8569b09fbdd15940d09c154e6d7795c5e10294;hp=175f4fbab3ae096cda04b88e626a8b57eb91a020;hpb=76559e10296433ab488b9d9940c50a39282ee49a;p=profile.git diff --git a/.vim/script/svn b/.vim/script/svn index 175f4fb..d5244fb 100644 --- a/.vim/script/svn +++ b/.vim/script/svn @@ -5,7 +5,7 @@ fun! SVNcommit() set nomod " Get the modified files. Discount new files. - let l:files = system("sed -n '1,/^$/d;s/^[MR]....//p' " . bufname("")) + let l:files = system("sed -n '1,/^$/d;/^[MR]..../{s//\"/;s/$/\"/p;}' " . bufname("")) if l:files == "" return @@ -23,7 +23,7 @@ fun! SVNcommit() set buftype=nowrite set bufhidden=hide setlocal noswapfile - file [svn diff] + file [svn diff\] " Switch back to the top window. wincmd k @@ -33,9 +33,6 @@ endfun 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