Skip to content

Commit 8da7029

Browse files
author
cht
committed
fix bugs
1 parent ff2e6b7 commit 8da7029

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

lua/csvtools.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353

5454
function M.CloseWindow()
5555
if Status.winid ~= nil then
56-
vim.api.nvim_win_close(M.winid, true)
56+
vim.api.nvim_win_close(Status.winid, true)
5757
Status.winid = nil
5858
Status.buf = nil
5959
Status.header = {}
@@ -89,15 +89,15 @@ end
8989
function M.Highlight()
9090
if vim.o.filetype == "csv" then
9191
Status.header = getheader.Header()
92-
if M.showoverflow then
93-
for count = 1, #Status.overflowtext do
94-
vim.api.nvim_buf_del_extmark(
95-
Status.overflowtext[count].markid,
96-
Status.overflowtext[count].ns_id,
97-
Status.overflowtext[count].id
98-
)
99-
end
100-
end
92+
--if M.showoverflow then
93+
-- for count = 1, #Status.overflowtext do
94+
-- vim.api.nvim_buf_del_extmark(
95+
-- Status.overflowtext[count].markid,
96+
-- Status.overflowtext[count].ns_id,
97+
-- Status.overflowtext[count].id
98+
-- )
99+
-- end
100+
--end
101101
Status.overflowtext = {}
102102
M.mainwindowbuf = vim.api.nvim_get_current_buf()
103103
local line, _ = unpack(vim.api.nvim_win_get_cursor(0))

0 commit comments

Comments
 (0)