mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(ui)!: emit prompt "messages" as cmdline events #31525
Problem: Prompts are emitted as messages events, where cmdline events
are more appropriate. The user input is also emitted as
message events in fast context, so cannot be displayed with
vim.ui_attach().
Solution: Prompt for user input through cmdline prompts.
This commit is contained in:
@@ -368,7 +368,7 @@ describe('input non-printable chars', function()
|
||||
"Xtest-overwrite" |
|
||||
{9:WARNING: The file has been changed since reading it!!!} |
|
||||
{6:Do you really want to write to it (y/n)?}u |
|
||||
{6:Do you really want to write to it (y/n)?} |
|
||||
{6:Do you really want to write to it (y/n)?}{18:^E} |
|
||||
{6:Do you really want to write to it (y/n)?}^ |
|
||||
]])
|
||||
|
||||
@@ -379,7 +379,7 @@ describe('input non-printable chars', function()
|
||||
"Xtest-overwrite" |
|
||||
{9:WARNING: The file has been changed since reading it!!!} |
|
||||
{6:Do you really want to write to it (y/n)?}u |
|
||||
{6:Do you really want to write to it (y/n)?} |
|
||||
{6:Do you really want to write to it (y/n)?}{18:^E} |
|
||||
{6:Do you really want to write to it (y/n)?}n |
|
||||
{6:Press ENTER or type command to continue}^ |
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user