Improve offset handling

This commit is contained in:
hrsh7th
2021-08-07 00:54:31 +09:00
parent 39c8abaeb3
commit 7931bcfafd
2 changed files with 2 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ core.confirm = vim.schedule_wrap(function(e, option, callback)
end
e.confirmed = true
debug.log('entry.confirm', e:get_completion_item())
debug.log('entry.confirm', e)
local ctx = context.new()
local restore_text = string.sub(ctx.cursor_line, e.context.cursor.col, ctx.cursor.col - 1)