Dear Vim community,
I like the recently added package helpcurwin, which displays help pages in the
current window (rather than a split). However, there is a confirmation dialog
that appears using `:HelpCurWin` when the current buffer is modified. This is
annoying and inconsistent with the behaviour of other commands that have to
solve the same problem—`:edit` being the prime example.
In pseudo-vimscript, the command currently behaves like this:
```
if (&modified)
confirmation dialog
else
display help in current window
endif
```
At a minimum, it should behave like this:
```
if (&modified && !&hidden)
if (&confirm)
confirmation dialog
else
error
endif
else
display help in current window
endif
```
This is closer to how commands that discard the buffer operate. There is more
room for improvement:
- Support for `<bang>` so that `:HelpCurWin!` forces the operation.
- Take into account special buffer options like 'buftype' and 'bufhidden'.
I am open to discussion and possibly submitting a patch.
Best wishes,
Hernán Ibarra Mejia
(www.nagbu.net)
--
--
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/DIK5U9Y2SSDL.3P7MPI4Q3SKXW%40ibarramejia.com.