Skip to content

Commit 4df20c2

Browse files
committed
fix(messages): Made keymap confirmation message pattern more strict
This is to prevent messages containing `()` from being detected as wrong type of messages.
1 parent f28aea2 commit 4df20c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/ui/spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ spec.default = {
628628
---|fS
629629

630630
condition = function (state)
631-
return string.match(state.prompt or "", "[%[%(].[%]%)]") ~= nil;
631+
return string.match(state.prompt or "", "[%[%(].[%]%)]%w+") ~= nil;
632632
end,
633633

634634
title = function (state)

0 commit comments

Comments
 (0)