cursor.go
func (c *Cursor) correctPosition() {
	if c.Position > len(c.input) {
		c.Position = len(c.input)
	}

	if c.Position < 0 {
		c.Position = 0
	}
}
func (c *Cursor) correctPosition() {
	if c.Position > len(c.input) {
		c.Position = len(c.input)
	}

	if c.Position < 0 {
		c.Position = 0
	}
}
func ( c * Cursor ) correctPosition ( ) { if c . Position > len ( c . input ) { c . Position = len ( c . input ) } if c . Position < 0 { c . Position = 0 } }
// ensures we are in bounds.
ensures we are in bounds .