fix: use head_pipeline if available
This commit is contained in:
@@ -156,7 +156,7 @@ M.build_info_lines = function()
|
|||||||
pipeline = {
|
pipeline = {
|
||||||
title = "Pipeline Status",
|
title = "Pipeline Status",
|
||||||
content = function()
|
content = function()
|
||||||
local pipeline = state.INFO.pipeline
|
local pipeline = info.head_pipeline ~= vim.NIL and info.head_pipeline or info.pipeline
|
||||||
if type(pipeline) ~= "table" or (type(pipeline) == "table" and u.table_size(pipeline) == 0) then
|
if type(pipeline) ~= "table" or (type(pipeline) == "table" and u.table_size(pipeline) == 0) then
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user