Fix handling of changed up-to-date msg from Git (#724)

The msg was changed from 'Already up-to-date' to 'Already up to date'.
This commit is contained in:
Daniel Hahler
2018-03-04 05:43:13 +01:00
committed by Junegunn Choi
parent 96375cb7d3
commit e6a775e0df
3 changed files with 13 additions and 12 deletions

View File

@@ -908,7 +908,7 @@ function! s:finish(pull)
call add(msgs, "Press 'R' to retry.")
endif
if a:pull && len(s:update.new) < len(filter(getline(5, '$'),
\ "v:val =~ '^- ' && stridx(v:val, 'Already up-to-date') < 0"))
\ "v:val =~ '^- ' && v:val !~# 'Already up.to.date'"))
call add(msgs, "Press 'D' to see the updated changes.")
endif
echo join(msgs, ' ')