Don't try to diff jobs or other non-file stuff.
[profile.git] / .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