Hi,

On Fri, Aug 13, 2021 at 5:18 AM bfrg <[email protected]> wrote:
>
> I find it awkward that multiline text-properties cannot be handled with this 
> function.
> Is there really such a drastic slowdown when the function is changed to
> prop_add_list({props}, [[{lnum}, {col}, {end-lnum}, {end-col}], ...])?
>

Adding one more item to the List will not slow down the function.
The user now needs to pass a four item List instead of a three item
List. If the common case is single line text properties, then in most
use cases, lnum and end-lnum will be the same.

Based on Bram's comment, I thought if multi-line text property is needed,
then prop_add() should be used?

- 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/CAAW7x7k%2BcL3-0nSeB_OR2mapHdekY6BMReE%3DN%2Bk_%2B4jNY5vhMQ%40mail.gmail.com.

Raspunde prin e-mail lui