aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/ui_event_spec.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-12-22 13:21:57 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-12-23 00:37:28 +0100
commita10636fbe7bb4dba45c42c64548e5e32fe8f8d12 (patch)
treea6fb8278c199c9c94a75e60419ad3700f33e00d1 /test/functional/lua/ui_event_spec.lua
parent394f69a25dc32c5b101ba2d34ac6376b0c75b2a2 (diff)
downloadrneovim-a10636fbe7bb4dba45c42c64548e5e32fe8f8d12.tar.gz
rneovim-a10636fbe7bb4dba45c42c64548e5e32fe8f8d12.tar.bz2
rneovim-a10636fbe7bb4dba45c42c64548e5e32fe8f8d12.zip
feat(ui): specify whether msg_show event is added to history
Pass along whether message in msg_show event is added to the internal :messages history.
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r--test/functional/lua/ui_event_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua
index 2922fb5414..7e890e8ae0 100644
--- a/test/functional/lua/ui_event_spec.lua
+++ b/test/functional/lua/ui_event_spec.lua
@@ -265,6 +265,7 @@ describe('vim.ui_attach', function()
messages = {
{
content = { { 'E122: Function Foo already exists, add ! to replace it', 9, 6 } },
+ history = true,
kind = 'emsg',
},
},
@@ -283,6 +284,7 @@ describe('vim.ui_attach', function()
messages = {
{
content = { { 'replace with Replacement (y/n/a/q/l/^E/^Y)?', 6, 18 } },
+ history = true,
kind = 'confirm_sub',
},
},
@@ -300,10 +302,12 @@ describe('vim.ui_attach', function()
messages = {
{
content = { { 'Select:\nOne\nTwo\n' } },
+ history = false,
kind = 'list_cmd',
},
{
content = { { 'Type number and <Enter> or click with the mouse (q or empty cancels): ' } },
+ history = false,
kind = 'number_prompt',
},
},
@@ -382,6 +386,7 @@ describe('vim.ui_attach', function()
6,
},
},
+ history = true,
kind = 'lua_error',
},
{
@@ -392,10 +397,12 @@ describe('vim.ui_attach', function()
6,
},
},
+ history = true,
kind = 'lua_error',
},
{
content = { { 'Press ENTER or type command to continue', 100, 18 } },
+ history = false,
kind = 'return_prompt',
},
},