summaryrefslogtreecommitdiffstats
path: root/src/po
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-22 15:28:31 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-22 15:28:31 +0100
commit8a3704723c40779d688ef957dbe5bd8b65c25f95 (patch)
treebd2bcf7bace92c772a82402a15e3d3aad019d202 /src/po
parent835ee980eedd1aa0fa2d731312ce38697a12a897 (diff)
patch 8.2.5001: checking translations affects the search pattern historyv8.2.5001
Problem: Checking translations affects the search pattern history. Solution: Use "keeppatterns". (Doug Kearns)
Diffstat (limited to 'src/po')
-rw-r--r--src/po/check.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/po/check.vim b/src/po/check.vim
index f94070feb2..a01874cce7 100644
--- 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