We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1985f2d commit e5e797eCopy full SHA for e5e797e
lua/neorg/modules/core/neorgcmd/commands/return/module.lua
@@ -32,7 +32,7 @@ module.on_event = function(event)
32
local buffers = vim.api.nvim_list_bufs()
33
34
local to_delete = {}
35
- for _, buffer in ipairs(buffers) do
+ for buffer in vim.iter(buffers):rev() do
36
if vim.fn.buflisted(buffer) == 1 then
37
-- If the listed buffer we're working with has a .norg extension then remove it (not forcibly)
38
if not vim.endswith(vim.api.nvim_buf_get_name(buffer), ".norg") then
0 commit comments