comparison src/ex_docmd.c @ 11757:74abb6c84984 v8.0.0761

patch 8.0.0761: options not set properly for a terminal buffer commit https://github.com/vim/vim/commit/1f2903c43109b16594d141a730659317b15f388d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 23 19:51:01 2017 +0200 patch 8.0.0761: options not set properly for a terminal buffer Problem: Options of a buffer for a terminal window are not set properly. Solution: Add "terminal" value for 'buftype'. Make 'buftype' and 'bufhidden' not depend on the quickfix feature. Also set the buffer name and show "running" or "finished" in the window title.
author Christian Brabandt <cb@256bit.org>
date Sun, 23 Jul 2017 20:00:05 +0200
parents 70bc7b107610
children 1c1cb1e9b7b3
comparison
equal deleted inserted replaced
11756:e3e89d6460d0 11757:74abb6c84984
8546 } 8546 }
8547 else 8547 else
8548 { 8548 {
8549 if (*eap->arg == '-' || *eap->arg == '+') 8549 if (*eap->arg == '-' || *eap->arg == '+')
8550 n += curwin->w_height; 8550 n += curwin->w_height;
8551 else if (n == 0 && eap->arg[0] == NUL) /* default is very wide */ 8551 else if (n == 0 && eap->arg[0] == NUL) /* default is very high */
8552 n = 9999; 8552 n = 9999;
8553 win_setheight_win((int)n, wp); 8553 win_setheight_win((int)n, wp);
8554 } 8554 }
8555 } 8555 }
8556 #endif 8556 #endif
11677 /* 11677 /*
11678 * Save Folds when 'buftype' is empty and for help files. 11678 * Save Folds when 'buftype' is empty and for help files.
11679 */ 11679 */
11680 if ((*flagp & SSOP_FOLDS) 11680 if ((*flagp & SSOP_FOLDS)
11681 && wp->w_buffer->b_ffname != NULL 11681 && wp->w_buffer->b_ffname != NULL
11682 # ifdef FEAT_QUICKFIX 11682 && (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help))
11683 && (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help)
11684 # endif
11685 )
11686 { 11683 {
11687 if (put_folds(fd, wp) == FAIL) 11684 if (put_folds(fd, wp) == FAIL)
11688 return FAIL; 11685 return FAIL;
11689 } 11686 }
11690 #endif 11687 #endif