Skip to content

Commit 5d6775f

Browse files
committed
Fix default height not set to 0.5 in top/bottom/center
1 parent 7d2d9b9 commit 5d6775f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neoterm.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function neoterm.open(opts)
141141

142142
-- If no height is provided and position is 'top', 'bottom', or 'center', set default height
143143
if config.height == 1 then
144-
if position == "top" or position == "bottom" or position == "center" then
144+
if position == 1 or position == 3 or position == 5 then
145145
height = 0.5
146146
else
147147
height = config.height

0 commit comments

Comments
 (0)