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

Lifepillar <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
On 2025-01-05, Salman Halim <[email protected]> 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 [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/vles1p%24shh%241%40ciao.gmane.io.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.