Skip to content

Commit

Permalink
fix(cellbuf): window: we don't need to move the cursor if it's hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jan 6, 2025
1 parent a58d766 commit d626990
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cellbuf/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ func (c *Window) MoveTo(x, y int) (v bool) {
return
}
c.cur.X, c.cur.Y = x, y
return c.s.MoveTo(c.x+x, c.y+y)
if c.s.opts.ShowCursor {
return c.s.MoveTo(c.x+x, c.y+y)
}
return true
}

// Print prints the given string at the current cursor position. If the cursor
Expand Down

0 comments on commit d626990

Please sign in to comment.