From a6f5e197ba9c7694d1ae04a7d7fd023e60964d87 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 5 Oct 2022 21:16:35 +0800 Subject: [PATCH] fix(prompt): fix register matcher --- lua/spacevim/api/prompt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/spacevim/api/prompt.lua b/lua/spacevim/api/prompt.lua index 69175897b..4a686cf42 100644 --- a/lua/spacevim/api/prompt.lua +++ b/lua/spacevim/api/prompt.lua @@ -71,7 +71,7 @@ function M._handle_input(...) goto continue end if M._c_r_mode then - if char == '[a-zA-Z0-9"+:/]$' then + if char:match('^[%w":+/]$') then local reg = '@' .. char local paste = vim.fn.get(vim.fn.split(vim.fn.eval(reg), "\n"), 0, '') M._prompt.cursor_begin = M._prompt.cursor_begin .. paste