diff --git a/lua/cmp/view/native_entries_view.lua b/lua/cmp/view/native_entries_view.lua index fe1cdd7..35ad4f2 100644 --- a/lua/cmp/view/native_entries_view.lua +++ b/lua/cmp/view/native_entries_view.lua @@ -122,9 +122,9 @@ native_entries_view.select_next_item = function(self, option) end if self:visible() then if (option.behavior or types.cmp.SelectBehavior.Insert) == types.cmp.SelectBehavior.Insert then - feedkeys.call(keymap.t(string.format('%s', option.count), 'n', callback)) + feedkeys.call(keymap.t(string.rep('', option.count)), 'n', callback) else - feedkeys.call(keymap.t(string.format('%s', option.count)), 'n', callback) + feedkeys.call(keymap.t(string.rep('', option.count)), 'n', callback) end end end @@ -135,9 +135,9 @@ native_entries_view.select_prev_item = function(self, option) end if self:visible() then if (option.behavior or types.cmp.SelectBehavior.Insert) == types.cmp.SelectBehavior.Insert then - feedkeys.call(keymap.t(string.format('%s', option.count), 'n', callback)) + feedkeys.call(keymap.t(string.rep('', option.count)), 'n', callback) else - feedkeys.call(keymap.t(string.format('%s', option.count)), 'n', callback) + feedkeys.call(keymap.t(string.rep('', option.count)), 'n', callback) end end end