updated for version 7.0116
diff --git a/src/option.c b/src/option.c
index 940c6e7..e177216 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7107,7 +7107,9 @@
 #ifdef FEAT_GUI
     else if (pp == &p_linespace)
     {
-	if (gui.in_use && gui_mch_adjust_charsize() == OK)
+	/* Recompute gui.char_height and resize the Vim window to keep the
+	 * same number of lines. */
+	if (gui.in_use && gui_mch_adjust_charheight() == OK)
 	    gui_set_shellsize(FALSE, FALSE);
     }
 #endif