File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -164,9 +164,11 @@ return {
164
164
if truncated_label ~= label then vim_item .abbr = truncated_label .. astroui .get_icon " Ellipsis" end
165
165
166
166
-- truncate menu to maximum of 25% of the window
167
- local menu = vim_item .menu or " "
168
- local truncated_menu = vim .fn .strcharpart (menu , 0 , math.floor (0.25 * vim .o .columns ))
169
- if truncated_menu ~= menu then vim_item .menu = truncated_menu .. astroui .get_icon " Ellipsis" end
167
+ if vim_item .menu then
168
+ local menu = vim_item .menu
169
+ local truncated_menu = vim .fn .strcharpart (menu , 0 , math.floor (0.25 * vim .o .columns ))
170
+ if truncated_menu ~= menu then vim_item .menu = truncated_menu .. astroui .get_icon " Ellipsis" end
171
+ end
170
172
171
173
return vim_item
172
174
end )
You can’t perform that action at this time.
0 commit comments