diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-25 20:42:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-25 20:42:36 +0000 |
commit | 027436338b4b3e746ae5087b8a01c7404619d97b (patch) | |
tree | bd958bdd54dfad7073d368c34fc8cdcf863df9af /src/option.c | |
parent | c013cb66a6f2403e90a43203e4059b4bb531a8e8 (diff) | |
download | vim-git-027436338b4b3e746ae5087b8a01c7404619d97b.tar.gz |
updated for version 7.0116
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index 940c6e768..e17721626 100644 --- a/src/option.c +++ b/src/option.c @@ -7107,7 +7107,9 @@ set_num_option(opt_idx, varp, value, errbuf, errbuflen, opt_flags) #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 |