Use instead of

This commit is contained in:
hrsh7th
2021-10-11 00:43:14 +09:00
parent 67d43ddd59
commit d8e6a865e4
5 changed files with 20 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ end
misc.set(_G, { 'cmp', 'view', 'custom_entries_view', '_insert', 'remove' }, function(offset)
local cursor = vim.api.nvim_win_get_cursor(0)
local length = vim.str_utfindex(string.sub(vim.api.nvim_get_current_line(), offset, cursor[2]))
return keymap.t(string.rep('<C-h>', length))
return keymap.backspace(length)
end)
return custom_entries_view