comparison src/channel.c @ 13435:fa198b71bab2 v8.0.1592

patch 8.0.1592: terminal windows in a session are not properly restored commit https://github.com/vim/vim/commit/4d8bac8bf593ff087517ff79090c2d224325aae6 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 9 21:33:34 2018 +0100 patch 8.0.1592: terminal windows in a session are not properly restored Problem: Terminal windows in a session are not properly restored. Solution: Add "terminal" in 'sessionoptions'. When possible restore the command running in a terminal.
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Mar 2018 21:45:06 +0100
parents a69636c63103
children 33eea5ce5415
comparison
equal deleted inserted replaced
13434:8f7f75828bed 13435:fa198b71bab2
4775 if (!(supported2 & JO2_HIDDEN)) 4775 if (!(supported2 & JO2_HIDDEN))
4776 break; 4776 break;
4777 opt->jo_set |= JO2_HIDDEN; 4777 opt->jo_set |= JO2_HIDDEN;
4778 opt->jo_hidden = get_tv_number(item); 4778 opt->jo_hidden = get_tv_number(item);
4779 } 4779 }
4780 else if (STRCMP(hi->hi_key, "norestore") == 0)
4781 {
4782 if (!(supported2 & JO2_NORESTORE))
4783 break;
4784 opt->jo_set |= JO2_NORESTORE;
4785 opt->jo_term_norestore = get_tv_number(item);
4786 }
4780 #endif 4787 #endif
4781 else if (STRCMP(hi->hi_key, "env") == 0) 4788 else if (STRCMP(hi->hi_key, "env") == 0)
4782 { 4789 {
4783 if (!(supported2 & JO2_ENV)) 4790 if (!(supported2 & JO2_ENV))
4784 break; 4791 break;
5468 { 5475 {
5469 EMSG(_(e_invarg)); 5476 EMSG(_(e_invarg));
5470 goto theend; 5477 goto theend;
5471 } 5478 }
5472 #ifdef USE_ARGV 5479 #ifdef USE_ARGV
5480 /* This will modify "cmd". */
5473 if (mch_parse_cmd(cmd, FALSE, &argv, &argc) == FAIL) 5481 if (mch_parse_cmd(cmd, FALSE, &argv, &argc) == FAIL)
5474 goto theend; 5482 goto theend;
5475 argv[argc] = NULL; 5483 argv[argc] = NULL;
5476 #endif 5484 #endif
5477 } 5485 }