This commit is contained in:
hrsh7th
2021-12-14 17:46:31 +09:00
parent b903545950
commit 47d7cfc06a

View File

@@ -322,6 +322,7 @@ core.confirm = function(self, e, option, callback)
-- Close menus.
self.view:close()
feedkeys.call(keymap.t('<Cmd>set indentkeys=<CR>'), 'n')
feedkeys.call('', 'n', function()
local ctx = context.new()
local keys = {}
@@ -427,6 +428,7 @@ core.confirm = function(self, e, option, callback)
feedkeys.call(table.concat(keys, ''), 'int')
end
end)
feedkeys.call(keymap.t('<Cmd>set indentkeys=%s<CR>'):format(vim.fn.escape(vim.bo.indentkeys, ' "|\\')), 'n')
feedkeys.call('', 'n', function()
e:execute(vim.schedule_wrap(function()
release()