From e04927534891bc179e49d461e1cedd99f201cd1f Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 24 Nov 2008 10:33:03 +0000 Subject: [PATCH] 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 --- .vim/script/p4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1