Fix expansion bug

This commit is contained in:
hrsh7th
2021-11-04 20:49:28 +09:00
parent 8c08bdf7a4
commit 01fcf869bb
2 changed files with 3 additions and 3 deletions

View File

@@ -15,10 +15,10 @@ feedkeys.call = setmetatable({
local queue = {}
if #keys > 0 then
table.insert(queue, { keymap.t('<Cmd>set backspace=start<CR>'), 'n' })
table.insert(queue, { keymap.t('<Cmd>set lazyredraw<CR>'), 'n' })
table.insert(queue, { keymap.t('<Cmd>set eventignore=all<CR>'), 'n' })
table.insert(queue, { keys, string.gsub(mode, '[it]', ''), true })
table.insert(queue, { keymap.t('<Cmd>set backspace=%s<CR>'):format(vim.o.backspace or ''), 'n' })
table.insert(queue, { keymap.t('<Cmd>set %slazyredraw<CR>'):format(vim.o.lazyredraw and '' or 'no'), 'n' })
table.insert(queue, { keymap.t('<Cmd>set eventignore=%s<CR>'):format(vim.o.eventignore or ''), 'n' })
end
if #keys > 0 or callback then

View File

@@ -69,7 +69,7 @@ keymap.backspace = function(count)
return ''
end
local keys = {}
table.insert(keys, keymap.t(string.rep('<BS>', count)))
table.insert(keys, keymap.t(string.rep(keymap.undojoin() .. '<Left><Del>', count)))
return table.concat(keys, '')
end