You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/nvim-tree/actions/node/open-file.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -200,7 +200,7 @@ local function open_file_in_tab(filename)
200
200
end
201
201
vim.cmd.tabnew()
202
202
vim.bo.bufhidden="wipe"
203
-
--HACK: prevent NvimTree to be alternate buffer
203
+
--Following vim.fn.tabnew the # buffer may be set to the tree buffer. There is no way to clear the # buffer via vim.fn.setreg as it requires a valid buffer. Clear # by setting it to a new temporary scratch buffer.
0 commit comments