From ee5cc484d1c6cfbb13e875566c416ef5f4055c0d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 2 Jun 2024 23:43:52 +0800 Subject: [PATCH] fix(task): check isBackground by boolean --- lua/telescope/_extensions/task.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/_extensions/task.lua b/lua/telescope/_extensions/task.lua index b2009532e..ec89d6ed9 100644 --- a/lua/telescope/_extensions/task.lua +++ b/lua/telescope/_extensions/task.lua @@ -50,7 +50,7 @@ local function show_taskconfig(opts) end -- @todo the text maybe changed local background = 'no-background' - if entry.value.task.isBackground == 1 then + if entry.value.task.isBackground then background = 'background' end return displayer({