There's a problematic interaction between popup_dialog/popup_filter_yesno and Press ENTER ...
Start vim with
gvim -u NONE -U NONE
then source
vim9script
echo 'one'
echo 'two'
popup_dialog('y/n?', {filter: 'popup_filter_yesno'})
See the message
Press ENTER or type command to continue
Press ENTER and nothing happens. Ctlr-C or a very few other keys get out, but the popup_dialog is never seen.
The most obvious is to handle ENTER and then display the popup.
9.1.586
ubuntu/gtk3
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
There was a post to vim dev, that asked about this issue
https://groups.google.com/d/msgid/vim_dev/3af9de4f-bbfa-47bd-8a7d-761f17cb581c%40raelity.com
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #15300 as completed via b14c325.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Why your PR is only changed for
c == CARwhen 'need_wait_return'?
With the current situation when you run the failing example
vim seems to hangIMHO, both seem like a serious bugs. This PR address those bugs while still keeping the spirit of popup_filter_yesno.
With popup_filter_yesno nothing should be run until the popup is read and dismissed, allowing :cmd would violate that contract.
Supposed: - either it should be nothing (kept it as it was though looked weird) - or like general cases for 'need_wait_return' e.g emit some dummy ':' cmd
…
-- shane.xb.qian
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Why 'Press ENTER' is OK to you, but 'type command' is not OK?
I've answered this already. I repeat
popup_filter_yesno contractThis PR is a compromise.
Those are all general ways for/when prompt: 'Press ENTER or type command to continue' why impl half? or why just kept it as it was, or impl completely?
…
-- shane.xb.qian
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
was there some harm to use ctrl-c to stop such 'hang' ?
The popup is never displayed, which is stated in the "OriginalPost". If you run the test in OP and use ctrl-c, the popup is never display which is a serious problem for a popup that describes an error.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
i do not see there problem, it is ctrl-c for.
https://en.wiktionary.org/wiki/there_are_none_so_blind_as_those_who_will_not_see
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()