Fix #375
This commit is contained in:
@@ -311,7 +311,7 @@ core.confirm = function(self, e, option, callback)
|
||||
local confirm = {}
|
||||
table.insert(confirm, keymap.backspace(ctx.cursor.character - misc.to_utfindex(e.context.cursor_before_line, e:get_offset())))
|
||||
table.insert(confirm, e:get_word())
|
||||
keymap.feedkeys(table.concat(confirm, ''), 'n', function()
|
||||
keymap.feedkeys(table.concat(confirm, ''), 'nt', function()
|
||||
-- Restore to the requested state.
|
||||
local restore = {}
|
||||
table.insert(restore, keymap.backspace(vim.str_utfindex(e:get_word())))
|
||||
|
||||
@@ -260,7 +260,7 @@ misc.set(_G, { 'cmp', 'utils', 'keymap', 'listen', 'run' }, function(id)
|
||||
definition.callback(
|
||||
definition.keys,
|
||||
misc.once(function()
|
||||
vim.api.nvim_feedkeys(keymap.t(definition.fallback), 'i', true)
|
||||
vim.api.nvim_feedkeys(keymap.t(definition.fallback), 'it', true)
|
||||
end)
|
||||
)
|
||||
return keymap.t('<Ignore>')
|
||||
|
||||
Reference in New Issue
Block a user