Hi,

On Fri, Sep 11, 2020 at 7:09 AM lacygoill <[email protected]> wrote:

> I'm wondering if for the method it should pass the list (as it is now) or
> the string to match?
>
> I think it should pass the list. The question is not so much which one
> would vary, but which one we would get via the output of another function.
> In practice, I think it would be the list.
>
> A few practical usage examples would help.
>
> I could come up with a few (fuzzy search a buffer name via getbufinfo() +
> map() + fuzzymatch(); fuzzy search a colorscheme name via getcompletion()
> + fuzzymatch(); fuzzy search a string in an arbitrary buffer via
> getbufline() + fuzzymatch(); ...), but the function makes Vim crash too
> often.
>
> Example:
>
> vim9script
> ['somebuf', 'anotherone', 'needle', 'yetanotherone']
>   ->map({_, v -> bufadd(v) + bufload(v)})
> echom getbufinfo()
>   ->map({_, v -> v.name})
>   ->matchfuzzy('ndl')
>
> vim9scriptecho getbufinfo()
>   ->map({_, v -> v.name})
>   ->matchfuzzy('fbr')
>
>
>    - backtrace <https://github.com/vim/vim/files/5209509/backtrace.txt>
>    - valgrind log <https://github.com/vim/vim/files/5209510/valgrind.log>
>    - asan log <https://github.com/vim/vim/files/5209508/asan.log>
>
>
>
Thanks for reporting this issue. I have fixed it now. Can you check it in
the next update?

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3DKyKaSTjQ_ny_3S%2BC1UT7gtgin2SpOS4WVe5QidfAdag%40mail.gmail.com.

Raspunde prin e-mail lui