From 5d6775fdc6a44ec30daf743f052ffd4f439af7de Mon Sep 17 00:00:00 2001 From: dpi0 Date: Thu, 26 Sep 2024 18:45:03 +0530 Subject: [PATCH] Fix default height not set to 0.5 in top/bottom/center --- lua/neoterm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neoterm.lua b/lua/neoterm.lua index 89ee471..c1f6730 100644 --- a/lua/neoterm.lua +++ b/lua/neoterm.lua @@ -141,7 +141,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