Mercurial > vim
comparison src/po/check.vim @ 28958:7fb63ad3a9ab v8.2.5001
patch 8.2.5001: checking translations affects the search pattern history
Commit: https://github.com/vim/vim/commit/8a3704723c40779d688ef957dbe5bd8b65c25f95
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 May 2022 16:30:03 +0200 |
parents | 4d5081260d5a |
children | ec4e725ab8cd |
comparison
equal
deleted
inserted
replaced
28957:276725e0cabb | 28958:7fb63ad3a9ab |
---|---|
36 set nowrapscan | 36 set nowrapscan |
37 | 37 |
38 " Start at the first "msgid" line. | 38 " Start at the first "msgid" line. |
39 let wsv = winsaveview() | 39 let wsv = winsaveview() |
40 1 | 40 1 |
41 /^msgid\> | 41 keeppatterns /^msgid\> |
42 | 42 |
43 " When an error is detected this is set to the line number. | 43 " When an error is detected this is set to the line number. |
44 " Note: this is used in the Makefile. | 44 " Note: this is used in the Makefile. |
45 let error = 0 | 45 let error = 0 |
46 | 46 |
99 endwhile | 99 endwhile |
100 endif | 100 endif |
101 | 101 |
102 " Find next msgid. Quit when there is no more. | 102 " Find next msgid. Quit when there is no more. |
103 let lnum = line('.') | 103 let lnum = line('.') |
104 silent! /^msgid\> | 104 silent! keeppatterns /^msgid\> |
105 if line('.') == lnum | 105 if line('.') == lnum |
106 break | 106 break |
107 endif | 107 endif |
108 endwhile | 108 endwhile |
109 | 109 |
132 endfunc | 132 endfunc |
133 | 133 |
134 " Check that the \n at the end of the msgid line is also present in the msgstr | 134 " Check that the \n at the end of the msgid line is also present in the msgstr |
135 " line. Skip over the header. | 135 " line. Skip over the header. |
136 1 | 136 1 |
137 /^"MIME-Version: | 137 keeppatterns /^"MIME-Version: |
138 while 1 | 138 while 1 |
139 let lnum = search('^msgid\>') | 139 let lnum = search('^msgid\>') |
140 if lnum <= 0 | 140 if lnum <= 0 |
141 break | 141 break |
142 endif | 142 endif |