Sunday, January 5, 2025

Re: Get buffer's line count and check for emptiness

On 2025-01-05, Salman Halim <salmanhalim@gmail.com> wrote:
> I may have missed the part where you're not checking the current buffer
> (the bufnr bit). Not sure of an easier way than what you have to check if
> another buffer is empty.

Thanks. For some reason the beginning of my message got cut away. The
context is that I need to check in a Vim script function whether
a buffer passed as a parameter to the function is empty or how many
lines it has.

Life.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/vles1p%24shh%241%40ciao.gmane.io.

No comments:

Post a Comment