changeset 2484:e037ee8698b3 vim73

Set 'wrapscan' when checking the .po files. (Mike Williams)
author Bram Moolenaar <bram@vim.org>
date Wed, 04 Aug 2010 15:47:08 +0200
parents 7901306c5a34
children 5edcd4ef88df
files src/po/check.vim
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/po/check.vim
+++ b/src/po/check.vim
@@ -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