diff --git a/lua/lualine/components/special/eval_func_component.lua b/lua/lualine/components/special/eval_func_component.lua index 9110591..6dc6a2d 100644 --- a/lua/lualine/components/special/eval_func_component.lua +++ b/lua/lualine/components/special/eval_func_component.lua @@ -3,7 +3,9 @@ local EvalFuncComponent = require('lualine.component'):new() EvalFuncComponent.update_status = function(self) local component = self.options[1] local ok, status = pcall(EvalFuncComponent.eval_lua, component) - if not ok then status = EvalFuncComponent.vim_function(component) end + if not ok or status == 'nil' then + status = EvalFuncComponent.vim_function(component) + end return status end