Hi, On Fri, Sep 18, 2020 at 3:43 PM Prabir Shrestha <[email protected]> wrote:
> If I want to 100 matches with each items having 2 highlights and only want > to highlight 39:49 items do I need to loop through all the highlights > which is 200 iterations or I can just ask for items[39:49] and iterate > only 20 higlights? > > In the list (second item) returned by matchfuzzypos() you can use list slices to get only the matching positions for specific strings. For example, if there are 100 matching strings and you want to highlight only strings 39 to 49, then you can slice the second list using 39:49 and use only those items for highlighting. - Yegappan > I'm looking something like ios api > <https://developer.apple.com/documentation/uikit/uitableviewdatasource/1614861-tableview?language=objc> > for virtualization. > > > -- -- 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/CAAW7x7mY4aof6Uo_P-G1fWdTxVtoi-_nDThrYCHj0wXhuE-Pmg%40mail.gmail.com.
