Mercurial > vim
comparison src/terminal.c @ 13304:013c44d9dc09 v8.0.1526
patch 8.0.1526: no test using a screen dump yet
commit https://github.com/vim/vim/commit/da65058a9c4774dc534c7ae98d24c58b5db669fa
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 20 15:51:40 2018 +0100
patch 8.0.1526: no test using a screen dump yet
Problem: No test using a screen dump yet.
Solution: Add a test for C syntax highlighting. Add helper functions.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 20 Feb 2018 16:00:06 +0100 |
parents | 803294329951 |
children | 424321d6eea7 |
comparison
equal
deleted
inserted
replaced
13303:b97157007be1 | 13304:013c44d9dc09 |
---|---|
408 term->tl_buffer = curbuf; | 408 term->tl_buffer = curbuf; |
409 curbuf->b_term = term; | 409 curbuf->b_term = term; |
410 | 410 |
411 if (!opt->jo_hidden) | 411 if (!opt->jo_hidden) |
412 { | 412 { |
413 /* only one size was taken care of with :new, do the other one */ | 413 /* Only one size was taken care of with :new, do the other one. With |
414 if (opt->jo_term_rows > 0 && (cmdmod.split & WSP_VERT)) | 414 * "curwin" both need to be done. */ |
415 if (opt->jo_term_rows > 0 && (opt->jo_curwin | |
416 || (cmdmod.split & WSP_VERT))) | |
415 win_setheight(opt->jo_term_rows); | 417 win_setheight(opt->jo_term_rows); |
416 if (opt->jo_term_cols > 0 && !(cmdmod.split & WSP_VERT)) | 418 if (opt->jo_term_cols > 0 && (opt->jo_curwin |
419 || !(cmdmod.split & WSP_VERT))) | |
417 win_setwidth(opt->jo_term_cols); | 420 win_setwidth(opt->jo_term_cols); |
418 } | 421 } |
419 | 422 |
420 /* Link the new terminal in the list of active terminals. */ | 423 /* Link the new terminal in the list of active terminals. */ |
421 term->tl_next = first_term; | 424 term->tl_next = first_term; |