" Define the function we'll use. It's easier to do this than to faff about
" trying to run a sequence of normal mode commands.
fun! SVNcommit()
" Allow closing an unmodified spec.
set nomod
" Define the function we'll use. It's easier to do this than to faff about
" trying to run a sequence of normal mode commands.
fun! SVNcommit()
" Allow closing an unmodified spec.
set nomod
- " Get the modified files.
- let l:files = system("sed '1,/^$/d;s/^[MR]....//' " . bufname(""))
+ " Get the modified files. Discount new files.
+ let l:files = system("sed -n '1,/^$/d;/^[MR]..../{s//\"/;s/$/\"/p;}' " . bufname(""))
+
+ if l:files == ""
+ return
+ endif