mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 05:40:05 +08:00
fix(iedit): fix <Left>
and <Right>
key
This commit is contained in:
parent
daa51cb6ff
commit
3b70715411
@ -353,7 +353,7 @@ local function handle_normal(char) -- handle normal key bindings {{{
|
|||||||
end
|
end
|
||||||
replace_symbol()
|
replace_symbol()
|
||||||
-- }}}
|
-- }}}
|
||||||
elseif char == '<left>' or char == 'h' then -- {{{
|
elseif char == k.t('<left>') or char == 'h' then -- {{{
|
||||||
for _, i in ipairs(vim.fn.range(1, #cursor_stack)) do
|
for _, i in ipairs(vim.fn.range(1, #cursor_stack)) do
|
||||||
if cursor_stack[i].active then
|
if cursor_stack[i].active then
|
||||||
cursor_stack[i].cursor_end = cursor_stack[i].cursor_begin
|
cursor_stack[i].cursor_end = cursor_stack[i].cursor_begin
|
||||||
@ -365,7 +365,7 @@ local function handle_normal(char) -- handle normal key bindings {{{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
elseif char == '<right>' or char == 'l' then
|
elseif char == k.t('<right>') or char == 'l' then
|
||||||
for _, i in ipairs(vim.fn.range(1, #cursor_stack)) do
|
for _, i in ipairs(vim.fn.range(1, #cursor_stack)) do
|
||||||
if cursor_stack[i].active then
|
if cursor_stack[i].active then
|
||||||
cursor_stack[i].cursor_begin = cursor_stack[i].cursor_begin
|
cursor_stack[i].cursor_begin = cursor_stack[i].cursor_begin
|
||||||
|
Loading…
Reference in New Issue
Block a user