Hi,

On Sun, Aug 12, 2018 at 10:02 AM, h_east <[email protected]> wrote:
> Hi Bram and developers,
>
> How to reproduce:
> - Start Vanilla Vim
>   $ vim --clean
> - Do :helpgrep with language specifier
>   :helpg Vim@en
>
> Expected behavior:
> - Match some of them.
>
> Actual behavior:
> - Error(E480: No match) occurs.
>
>
>
> Investigation result:
> `eap->arg` has been changed after calling `regmatch.regprog = 
> vim_regcomp(eap->arg, ...)`..
> It must be changed before calling `vim_regcomp()`.
> Because it is necessary to change the regexp search pattern.
>
>
> I attached a patch contains test.
>
> PS
> This issue was reported by Takuya Fujiwara (tyru).
>

Can you modify the test to verify lhelpgrep also? You can use something like
the following:

func Xtest_helpgrep_with_lang_specifier(cchar)
  call s:setup_commands(a:cchar)
  Xhelpgrep Vim@en
  call assert_equal('help', &filetype)
  call assert_notequal(0, g:Xgetlist({'nr' : '$'}).nr)
  new | only
endfunc

func Test_helpgrep_with_lang_specifier()
  call Xtest_helpgrep_with_lang_specifier('c')
  call Xtest_helpgrep_with_lang_specifier('l')
endfunc

Thanks,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui