From c53dd36adcf512611fa7c523fced55447bfdbfa5 Mon Sep 17 00:00:00 2001 From: Zahid Date: Sat, 12 Nov 2022 03:16:12 +0100 Subject: [PATCH] Fix parantheses bug and use string.rep (#1297) --- lua/cmp/view/native_entries_view.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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