bufferline: fix type error if indicator is null

This commit is contained in:
LightQuantum 2023-01-28 13:56:46 +08:00
parent 6478cc3d50
commit c33a61a2f7
No known key found for this signature in database
GPG key ID: 488E05BFDD880F00

View file

@ -263,7 +263,11 @@ in
middle_mouse_command = cfg.middleMouseCommand;
# deprecated, but might still work
indicator_icon = cfg.indicatorIcon;
indicator = cfg.indicator;
indicator =
if cfg.indicator != null then with cfg.indicator; {
icon = icon;
style = style;
} else null;
buffer_close_icon = cfg.bufferCloseIcon;
modified_icon = cfg.modifiedIcon;
close_icon = cfg.closeIcon;