Hi,
On Thu, Nov 18, 2021 at 4:49 AM bfrg <[email protected]> wrote:
> How do we get all text-properties of a specific buffer?
>
Thanks for the feedback. I have updated the PR to use the last buffer line
number if
the end_lnum is greater than the last buffer line number. So you can use a
very large
value (9999999) for end_lnum.
- Yegappan
> In the examples you use line('$') but the function doesn't accept a
> buffer number. Currently the only way to obtain the number of lines in a
> buffer is through getbufinfo(bufnr)[0].linecount but this is a bit heavy
> considering how much data getbufinfo() could return. So wouldn't it be
> more efficient to accept '$' directly in end_lnum?
>
> For example: prop_list(1, {'bufnr': 4, 'end_lnum': '$', 'id': [123]}).
>
>
>
--
--
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/CAAW7x7nQ9Ffb4GekgT1V_HHODzq6ZkZ27kjgFKUZsMkxwtAqxQ%40mail.gmail.com.