From 9270f3cd2c3d8130b7c3e5c6486e2aff5bbea3da Mon Sep 17 00:00:00 2001 From: insufficientFunding <49592058+insufficientFunding@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:51:52 +0100 Subject: [PATCH] fix(winbar): wrong highlight when on a blank line. (#1410) --- lua/lspsaga/symbol/winbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspsaga/symbol/winbar.lua b/lua/lspsaga/symbol/winbar.lua index 2714d4a9d..b2c630d8c 100644 --- a/lua/lspsaga/symbol/winbar.lua +++ b/lua/lspsaga/symbol/winbar.lua @@ -28,7 +28,7 @@ local function path_in_bar(buf) for item in util.path_itera(buf) do item = #items == 0 - and '%#' .. (hl or 'SagaFileIcon') .. '#' .. (icon and icon .. ' ' or '') .. '%*' .. bar.prefix .. 'FileName#' .. item .. '%*' + and '%#' .. (hl or 'SagaFileIcon') .. '#' .. (icon and icon .. ' ' or '') .. '%*' .. bar.prefix .. 'FileName#' .. item or bar.prefix .. 'Folder#' .. (folder and folder or '')