From abffc35d03c9d0a34b8ef2f3fd71352cc993abd6 Mon Sep 17 00:00:00 2001 From: wongxy Date: Wed, 1 Nov 2023 10:07:28 +0800 Subject: [PATCH] Temporarily disable the items filtering --- plugin/virtcolumn.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugin/virtcolumn.lua b/plugin/virtcolumn.lua index 3770156..8649671 100644 --- a/plugin/virtcolumn.lua +++ b/plugin/virtcolumn.lua @@ -70,11 +70,12 @@ local function _refresh() local ctx = get_win_context() - local ll = ctx.leftcol - local ul = ctx.width + ctx.leftcol - ctx.textoff - items = vim.tbl_filter(function(item) - return item > ll and item < ul - end, items) + -- TODO: Find time to fix the bug that clears the displayed content when opening the sidebar(window) + -- local ll = ctx.leftcol + -- local ul = ctx.width + ctx.leftcol - ctx.textoff + -- items = vim.tbl_filter(function(item) + -- return item > ll and item < ul + -- end, items) if #items == 0 then api.nvim_buf_clear_namespace(curbuf, NS, 0, -1)