Re: [vim/vim] :delete reports one fewer line when deleting the entire buffer (Issue #21049)

Christian Brabandt (Vim Github Repository) <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/issues/21049/[email protected]>
chrisbra left a comment (vim/vim#21049)

> For example, with a four-line buffer, deleting 1,$ removes all four lines, but reports 3 fewer lines. Deleting 2,$ from the same four-line buffer correctly reports 3 fewer lines.

That is correct. `1,$d` deletes all lines, but your buffer will still have a single line. A buffer always has at least one line (otherwise the cursor couldn't be placed on it), so the output of `3 fewer lines` is actually correct.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/21049#issuecomment-5307923432
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/issues/21049/[email protected]>

-- 
-- 
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 visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/21049/5307923432%40github.com.
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.