diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-20 15:51:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-20 15:51:40 +0100 |
commit | da65058a9c4774dc534c7ae98d24c58b5db669fa (patch) | |
tree | 3b9c05511fd12c806a8cbec528b30f073c24cbe5 /src/terminal.c | |
parent | 7a76092a51fc5446426a4bfd9eb6503ec61bf9e9 (diff) | |
download | vim-git-da65058a9c4774dc534c7ae98d24c58b5db669fa.tar.gz |
patch 8.0.1526: no test using a screen dump yetv8.0.1526
Problem: No test using a screen dump yet.
Solution: Add a test for C syntax highlighting. Add helper functions.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/terminal.c b/src/terminal.c index 0f9aa8640..73554a106 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -410,10 +410,13 @@ term_start(typval_T *argvar, jobopt_T *opt, int without_job, int forceit) if (!opt->jo_hidden) { - /* only one size was taken care of with :new, do the other one */ - if (opt->jo_term_rows > 0 && (cmdmod.split & WSP_VERT)) + /* Only one size was taken care of with :new, do the other one. With + * "curwin" both need to be done. */ + if (opt->jo_term_rows > 0 && (opt->jo_curwin + || (cmdmod.split & WSP_VERT))) win_setheight(opt->jo_term_rows); - if (opt->jo_term_cols > 0 && !(cmdmod.split & WSP_VERT)) + if (opt->jo_term_cols > 0 && (opt->jo_curwin + || !(cmdmod.split & WSP_VERT))) win_setwidth(opt->jo_term_cols); } |