If you set the coordinate column or line in cursor_position to the same number as the number of columns or lines in the initialisation of the display, it would move the cursor off of the display. This fixes that issue.
Also added a check to keep the cursor on the screen if the number provides for the column coordinate is outside the number of columns.
If you set the coordinate column or line in
cursor_position
to the same number as the number of columns or lines in the initialisation of the display, it would move the cursor off of the display. This fixes that issue.Also added a check to keep the cursor on the screen if the number provides for the column coordinate is outside the number of columns.