mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.5001: checking translations affects the search pattern history (#18709)
Problem: Checking translations affects the search pattern history.
Solution: Use "keeppatterns". (Doug Kearns)
8a3704723c
This commit is contained in:
parent
378615b8ee
commit
39fb97b2a5
@ -41,7 +41,7 @@ set nowrapscan
|
|||||||
" Start at the first "msgid" line.
|
" Start at the first "msgid" line.
|
||||||
let wsv = winsaveview()
|
let wsv = winsaveview()
|
||||||
1
|
1
|
||||||
/^msgid\>
|
keeppatterns /^msgid\>
|
||||||
|
|
||||||
" When an error is detected this is set to the line number.
|
" When an error is detected this is set to the line number.
|
||||||
" Note: this is used in the Makefile.
|
" Note: this is used in the Makefile.
|
||||||
@ -104,7 +104,7 @@ while 1
|
|||||||
|
|
||||||
" Find next msgid. Quit when there is no more.
|
" Find next msgid. Quit when there is no more.
|
||||||
let lnum = line('.')
|
let lnum = line('.')
|
||||||
silent! /^msgid\>
|
silent! keeppatterns /^msgid\>
|
||||||
if line('.') == lnum
|
if line('.') == lnum
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
@ -137,7 +137,7 @@ endfunc
|
|||||||
" Check that the \n at the end of the msgid line is also present in the msgstr
|
" Check that the \n at the end of the msgid line is also present in the msgstr
|
||||||
" line. Skip over the header.
|
" line. Skip over the header.
|
||||||
1
|
1
|
||||||
/^"MIME-Version:
|
keeppatterns /^"MIME-Version:
|
||||||
while 1
|
while 1
|
||||||
let lnum = search('^msgid\>')
|
let lnum = search('^msgid\>')
|
||||||
if lnum <= 0
|
if lnum <= 0
|
||||||
|
Loading…
Reference in New Issue
Block a user