1
0
forked from aniani/vim

Set 'wrapscan' when checking the .po files. (Mike Williams)

This commit is contained in:
Bram Moolenaar 2010-08-04 15:47:08 +02:00
parent 3832c466d7
commit a411e5d97d

View File

@ -30,6 +30,10 @@ func! GetMline()
return substitute(idline, '[^%]*\(%[-+ #''.0-9*]*l\=[dsuxXpoc%]\)\=', '\1', 'g')
endfunc
" This only works when 'wrapscan' is set.
let s:save_wrapscan = &wrapscan
set wrapscan
" Start at the first "msgid" line.
1
/^msgid
@ -78,4 +82,7 @@ if error == 0
echo "OK"
endif
let &wrapscan = s:save_wrapscan
unlet s:save_wrapscan
endif