This commit is contained in:
hrsh7th
2021-09-14 03:15:18 +09:00
parent a212356641
commit 445179dca8
2 changed files with 10 additions and 9 deletions

View File

@@ -292,11 +292,6 @@ core.confirm = function(e, option, callback)
local suspending = core.suspend()
local ctx = core.get_context()
-- Try to resolve for only 100ms.
async.sync(function(done)
e:resolve(done)
end, 100)
-- Simulate `<C-y>` behavior.
local confirm = {}
table.insert(confirm, keymap.t(string.rep('<C-g>U<Left><Del>', ctx.cursor.character - misc.to_utfindex(e.context.cursor_before_line, e:get_offset()))))