Skip to content

Commit a17400c

Browse files
authored
fix: use consistent window positioning commands for splits (#50)
1 parent 2357f86 commit a17400c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/ui/ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end
6666
---@param type 'vertical' | 'horizontal'
6767
local function open_split(direction, type)
6868
if type == 'vertical' then
69-
vim.cmd((direction == 'left' and 'leftabove' or 'rightbelow') .. ' vsplit')
69+
vim.cmd((direction == 'left' and 'topleft' or 'botright') .. ' vsplit')
7070
else
7171
vim.cmd((direction == 'top' and 'aboveleft' or 'belowright') .. ' split')
7272
end

0 commit comments

Comments
 (0)