Skip to content

Commit 62c994a

Browse files
committed
Fixed picker pkg when headers are not present
1 parent cdf2848 commit 62c994a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/picker/picker.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ func (p *picker) render() {
180180
if p.maxHeight < lines {
181181
lines = p.maxHeight
182182
}
183-
ansi.MoveCursorUp(7 + lines)
183+
if len(p.headers) > 0 {
184+
lines++
185+
}
186+
ansi.MoveCursorUp(6 + lines)
184187
}
185188

186189
func (p *picker) Pick() (*option, *keys.KeyCode) {

0 commit comments

Comments
 (0)