]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.5001: checking translations affects the search pattern history v8.2.5001
authorBram Moolenaar <Bram@vim.org>
Sun, 22 May 2022 14:28:31 +0000 (15:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 May 2022 14:28:31 +0000 (15:28 +0100)
Problem:    Checking translations affects the search pattern history.
Solution:   Use "keeppatterns". (Doug Kearns)

src/po/check.vim
src/version.c

index f94070feb2409072dcddce125ab62c613be52221..a01874cce7883bc00673146ee73854f0d034e366 100644 (file)
@@ -38,7 +38,7 @@ set nowrapscan
 " Start at the first "msgid" line.
 let wsv = winsaveview()
 1
-/^msgid\>
+keeppatterns /^msgid\>
 
 " When an error is detected this is set to the line number.
 " Note: this is used in the Makefile.
@@ -101,7 +101,7 @@ while 1
 
   " Find next msgid.  Quit when there is no more.
   let lnum = line('.')
-  silent! /^msgid\>
+  silent! keeppatterns /^msgid\>
   if line('.') == lnum
     break
   endif
@@ -134,7 +134,7 @@ endfunc
 " Check that the \n at the end of the msgid line is also present in the msgstr
 " line.  Skip over the header.
 1
-/^"MIME-Version:
+keeppatterns /^"MIME-Version:
 while 1
   let lnum = search('^msgid\>')
   if lnum <= 0
index 00a784468fa1714b103c6520b9bee8d1cf40f9f1..d9471252396444ff1510e9548bbd22ccf39401af 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5001,
 /**/
     5000,
 /**/