summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-02-10 14:14:51 +0100
committerTobias Klauser <klto@zhaw.ch>2010-02-10 14:14:51 +0100
commit685a8f67c8ff5bd79764a85e67a02359cef297e3 (patch)
tree447eb4e056bf73ae469f8577d018b61afeaf8cfe
parentb3a230bc1ba88eaa38821b6fa5c21371eccb6e9e (diff)
Sunversion commit diff update
-rw-r--r--.vim/ftplugin/svn.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/.vim/ftplugin/svn.vim b/.vim/ftplugin/svn.vim
index d453ea0..7b2e5c1 100644
--- a/.vim/ftplugin/svn.vim
+++ b/.vim/ftplugin/svn.vim
@@ -29,9 +29,11 @@ function! Svn_diff_windows()
if line =~ '^M'
let file = substitute(line, '\v^MM?\s*(.*)\s*$', '\1', '')
let list_of_files = list_of_files . ' '.file
- endif
- if line =~ '^A'
- let file = substitute(line, '\v^A\s*[+]*\s*(.*)\s*$', '\1', '')
+ elseif line =~ '^A'
+ let file = substitute(line, '\v^AM?\s*[+]*\s*(.*)\s*$', '\1', '')
+ let list_of_files = list_of_files . ' '.file
+ elseif line =~ '^D'
+ let file = substitute(line, '\v^D\s*(.*)\s*$', '\1', '')
let list_of_files = list_of_files . ' '.file
endif