# HG changeset patch # User Bram Moolenaar # Date 1653229803 -7200 # Node ID 7fb63ad3a9aba71c2d5f9493f130da425a45d715 # Parent 276725e0cabbbf67e9a07261e48b5ff27c8d8697 patch 8.2.5001: checking translations affects the search pattern history Commit: https://github.com/vim/vim/commit/8a3704723c40779d688ef957dbe5bd8b65c25f95 Author: Bram Moolenaar Date: Sun May 22 15:28:31 2022 +0100 patch 8.2.5001: checking translations affects the search pattern history Problem: Checking translations affects the search pattern history. Solution: Use "keeppatterns". (Doug Kearns) diff --git a/src/po/check.vim b/src/po/check.vim --- a/src/po/check.vim +++ b/src/po/check.vim @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5001, +/**/ 5000, /**/ 4999,