fix: split with the same logic as the editor

This commit is contained in:
NicolasGB
2025-11-23 16:34:42 +01:00
committed by Nicolas GB
parent d385501067
commit f6982a7716
3 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ function M.open_ephemeral_buffer(initial_text, on_done)
-- Create a horizontal split at the bottom, half the screen height
local height = math.floor(vim.o.lines / 2)
vim.cmd(string.format("botright %dsplit", height))
vim.cmd(string.format("%dsplit", height))
-- Create a new unlisted, scratch buffer
local buf = vim.api.nvim_create_buf(false, true)