From b9e06deb335d0b9758d6bd36b9db27320f22625c Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Tue, 12 Oct 2021 19:17:24 -0600 Subject: [PATCH] fixup: fix missing `self` (#84) --- lua/lualine/component.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/component.lua b/lua/lualine/component.lua index 930b60a..853ec9a 100644 --- a/lua/lualine/component.lua +++ b/lua/lualine/component.lua @@ -23,7 +23,7 @@ end function M:init(options) self.options = options or {} component_no = component_no + 1 - if not options.component_name then + if not self.options.component_name then self.options.component_name = tostring(component_no) end self.component_no = component_no