mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
fix(prompt): fix register matcher
This commit is contained in:
parent
9e10b60340
commit
a6f5e197ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user