feat(window): add height&width option for editing window (#1913)

Co-authored-by: zhangkai.zju <zhangkai.zju@bytedance.com>
This commit is contained in:
zenk
2025-04-30 13:59:54 +08:00
committed by GitHub
parent cc1ea65cbc
commit 48a415ef01
2 changed files with 3 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ function PromptInput:show_shortcuts_hints()
win = self.winid,
width = width,
height = 1,
row = math.min(buf_height, win_height),
row = win_height,
col = math.max(win_width - width, 0),
style = "minimal",
border = "none",