mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:30:05 +08:00
fix(guide): update language specified mapping
close https://github.com/SpaceVim/SpaceVim/issues/4942
This commit is contained in:
parent
fa0cb4280d
commit
859e2db582
@ -633,6 +633,7 @@ local function handle_input(input)
|
|||||||
start_buffer()
|
start_buffer()
|
||||||
else
|
else
|
||||||
winclose()
|
winclose()
|
||||||
|
vim.cmd('doautocmd WinEnter,BufEnter')
|
||||||
prefix_key_inp = {}
|
prefix_key_inp = {}
|
||||||
cmp.fn.feedkeys(vis .. reg .. count, 'ti')
|
cmp.fn.feedkeys(vis .. reg .. count, 'ti')
|
||||||
|
|
||||||
@ -731,7 +732,7 @@ wait_for_input = function()
|
|||||||
undo_history = {}
|
undo_history = {}
|
||||||
guide_help_mode = false
|
guide_help_mode = false
|
||||||
winclose()
|
winclose()
|
||||||
vim.cmd('doautocmd WinEnter')
|
vim.cmd('doautocmd WinEnter,BufEnter')
|
||||||
elseif guide_help_mode then
|
elseif guide_help_mode then
|
||||||
submode_mappings(inp)
|
submode_mappings(inp)
|
||||||
guide_help_mode = false
|
guide_help_mode = false
|
||||||
@ -753,7 +754,7 @@ wait_for_input = function()
|
|||||||
handle_input(fsel)
|
handle_input(fsel)
|
||||||
else
|
else
|
||||||
winclose()
|
winclose()
|
||||||
vim.cmd('doautocmd WinEnter')
|
vim.cmd('doautocmd WinEnter,BufEnter')
|
||||||
local keys = prefix_key_inp
|
local keys = prefix_key_inp
|
||||||
local name = M.getName(prefix_key)
|
local name = M.getName(prefix_key)
|
||||||
local _keys = vim.fn.join(keys, '-')
|
local _keys = vim.fn.join(keys, '-')
|
||||||
|
Loading…
Reference in New Issue
Block a user