Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 413973c

Browse files
authored
Merge pull request #229 from aca/fix3
remove unnecessary function call
2 parents c059416 + 88f3084 commit 413973c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/completion/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function M.addCompletionItems(item_table, item)
3838
local menu_length = opt.get_option('menu_length')
3939
if menu_length ~= 0 then
4040
if string.len(item.abbr) > menu_length then
41-
item.abbr = string.sub(item.abbr, 0, opt.get_option('menu_length')).."..."
41+
item.abbr = string.sub(item.abbr, 0, menu_length).."..."
4242
end
4343
end
4444
table.insert(item_table, {

0 commit comments

Comments
 (0)