Re: Query about updating search stats

2024-05-10 Fir de Conversatie John Marriott


On 10-May-2024 06:30, John Marriott wrote:

Hi all,

Does anyone know why the update_search_stat() function (in search.c) 
considers the search direction and cursor position when deciding if it 
needs to recompute the search stats?


In my testing they don't seem to matter. In fact they just cause 
recomputation when it's not required.


What am I missing?

Thanks
John

Ah the penny has dropped. I've got it.

Cheers
John

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/6c8556f7-dbe6-4213-b757-65cf02c74d5a%40internode.on.net.


Query about updating search stats

2024-05-09 Fir de Conversatie John Marriott

Hi all,

Does anyone know why the update_search_stat() function (in search.c) 
considers the search direction and cursor position when deciding if it 
needs to recompute the search stats?


In my testing they don't seem to matter. In fact they just cause 
recomputation when it's not required.


What am I missing?

Thanks
John

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/4ee9eb79-81f2-4b9a-a377-014e4346deda%40internode.on.net.