forked from aniani/vim
Set 'wrapscan' when checking the .po files. (Mike Williams)
This commit is contained in:
parent
3832c466d7
commit
a411e5d97d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user