Don't try to diff jobs or other non-file stuff.
authorIain Patterson <me@iain.cx>
Mon, 24 Nov 2008 10:33:03 +0000 (10:33 +0000)
committerIain Patterson <me@iain.cx>
Mon, 24 Nov 2008 10:33:03 +0000 (10:33 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@152 6be0d1a5-5cfe-0310-89b6-964be062b18b

.vim/script/p4

index f7cabe5..f69cfb6 100644 (file)
@@ -16,7 +16,7 @@ fun! P4submit()
         set nomod
 
         " Get the files in the changelist.
-        let l:files = system("sed -n 's/       #.*//p' " . bufname(""))
+        let l:files = system("sed -n 's@       \(//.*\)        #.*@@p' " . bufname(""))
 
         " Create a new window, move it below the spec and read in a diff.
         botright new