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

Commit

Permalink
small fix for windows rendering (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Smith committed Aug 23, 2021
1 parent e819196 commit 2a06c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.go
Expand Up @@ -72,7 +72,7 @@ func (r *Renderer) Error(config *PromptConfig, invalid error) error {
func (r *Renderer) OffsetCursor(offset int) {
cursor := r.NewCursor()
for offset > 0 {
cursor.PreviousLine(-1)
cursor.PreviousLine(1)
offset--
}
}
Expand Down

0 comments on commit 2a06c1e

Please sign in to comment.