From: Iain Patterson Date: Mon, 24 Nov 2008 10:33:03 +0000 (+0000) Subject: Don't try to diff jobs or other non-file stuff. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=e04927534891bc179e49d461e1cedd99f201cd1f;p=profile.git Don't try to diff jobs or other non-file stuff. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@152 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vim/script/p4 b/.vim/script/p4 index f7cabe5..f69cfb6 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -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