Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 2a06c1e

Browse files
author
Nate Smith
authored
small fix for windows rendering (#370)
1 parent e819196 commit 2a06c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (r *Renderer) Error(config *PromptConfig, invalid error) error {
7272
func (r *Renderer) OffsetCursor(offset int) {
7373
cursor := r.NewCursor()
7474
for offset > 0 {
75-
cursor.PreviousLine(-1)
75+
cursor.PreviousLine(1)
7676
offset--
7777
}
7878
}

0 commit comments

Comments
 (0)