From f3baf6a4fff82e1fe7e6009777489ff8357a5553 Mon Sep 17 00:00:00 2001 From: jhonnyV-V Date: Tue, 10 Dec 2024 16:11:44 -0400 Subject: [PATCH] replace newlines in filenames --- lua/oil/view.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/oil/view.lua b/lua/oil/view.lua index 15e50228..c0cd5b34 100644 --- a/lua/oil/view.lua +++ b/lua/oil/view.lua @@ -663,6 +663,10 @@ local function render_buffer(bufnr, opts) end local lines, highlights = util.render_table(line_table, col_width) + for k, v in pairs(lines) do + --maybe replace it for something else + lines[k] = v:gsub("\n", " ") + end vim.bo[bufnr].modifiable = true vim.api.nvim_buf_set_lines(bufnr, 0, -1, true, lines)