CVS: fix regexp

This commit is contained in:
Marco Hinz 2018-04-15 17:49:03 +02:00
parent daf59eee47
commit a804002c21
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -171,7 +171,7 @@ function! sy#repo#get_diff_cvs(sy, exitval, diff) abort
let [found_diff, diff] = [0, []] let [found_diff, diff] = [0, []]
if a:exitval == 1 if a:exitval == 1
for diffline in a:diff for diffline in a:diff
if diffline =~ '+++' if diffline =~ '^+++'
let [found_diff, diff] = [1, a:diff] let [found_diff, diff] = [1, a:diff]
break break
endif endif