Skip to content

Commit

Permalink
fix(editor): use buf number to use as new main.
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 12, 2023
1 parent 70e334c commit e75283c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/edgy/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function M.check_main()
end)

if #bufs > 0 then
vim.cmd("botright sb " .. vim.api.nvim_buf_get_name(bufs[1]))
vim.cmd("botright sb " .. bufs[1])
else
vim.cmd([[botright new]])
end
Expand Down

0 comments on commit e75283c

Please sign in to comment.