1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00

fix(iedit): fix iedit-normal-left

This commit is contained in:
wsdjeg 2023-06-24 14:48:11 +08:00
parent bd4a67e98b
commit 581e56f9c6

View File

@ -356,7 +356,7 @@ local function handle_normal(char) -- handle normal key bindings {{{
elseif char == k.t('<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_char
.. cursor_stack[i].cursor_end .. cursor_stack[i].cursor_end
cursor_stack[i].cursor_char = cursor_stack[i].cursor_char =
vim.fn.matchstr(cursor_stack[i].cursor_begin, '.$') vim.fn.matchstr(cursor_stack[i].cursor_begin, '.$')