Skip to content

Commit

Permalink
Merge pull request #16 from dpi0/bugfix/default-height-not-set
Browse files Browse the repository at this point in the history
Fix default height not set to 0.5 in top/bottom/center
  • Loading branch information
itmecho authored Sep 27, 2024
2 parents d77f01a + 5d6775f commit 54c861a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neoterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function neoterm.open(opts)

-- If no height is provided and position is 'top', 'bottom', or 'center', set default height
if config.height == 1 then
if position == "top" or position == "bottom" or position == "center" then
if position == 1 or position == 3 or position == 5 then
height = 0.5
else
height = config.height
Expand Down

0 comments on commit 54c861a

Please sign in to comment.