[vim/vim] prompt-buffer raises E37 when I try to quit, even though (obviously) its `'buftype'` is not empty (Issue #18942)

2 views
Skip to first unread message

Phạm Bình An

unread,
9:53 AM (11 hours ago) 9:53 AM
to vim/vim, Subscribed
brianhuster created an issue (vim/vim#18942)

Steps to reproduce

  1. vim --clean abcdef
  2. set buftype=prompt
  3. Make any change to the abcdef buffer (which is now a prompt-buffer)
  4. :q
    Now you can see that Vim will prompt raise an error E37: No write since last change
  5. But of course the buffer is not writable. Typing :w will result in E382
    Of course I can still quit the buffer with :q!. But given that it is not meant to be writable in the first place, why do I have to that? Why can't simple :q just work?

Expected behaviour

:q allows quitting the buffer, without any error

Version of Vim

9.1.1868

Environment

OS: Kubuntu 24.04
Terminal : Konsole

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18942@github.com>

Reply all
Reply to author
Forward
0 new messages