diff --git a/src/screen.c b/src/screen.c index 9042d90ded..97d2f189cb 100644 --- a/src/screen.c +++ b/src/screen.c @@ -3378,6 +3378,13 @@ give_up: screen_Rows = Rows; screen_Columns = Columns; +#ifdef FEAT_GUI + // Cursor position may now be out of bounds after resize + if (gui.in_use && (gui.cursor_row >= screen_Rows + || gui.cursor_col >= screen_Columns)) + gui.cursor_is_valid = false; +#endif + set_must_redraw(UPD_CLEAR); // need to clear the screen later if (doclear) screenclear2(TRUE); diff --git a/src/version.c b/src/version.c index c9032621c1..aae300c55b 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 603, /**/ 602, /**/