Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8ccf97

Browse files
committed
fix(session): make 'terminal' default in 'sessionoptions'
1 parent601b1fd commitc8ccf97

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

‎runtime/doc/options.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5112,7 +5112,7 @@ A jump table for the options with a short description can be found at |Q_op|.
51125112

51135113
*'sessionoptions'**'ssop'*
51145114
'sessionoptions''ssop'string(default: "blank,buffers,curdir,folds,
5115-
help,tabpages,winsize")
5115+
help,tabpages,winsize,terminal")
51165116
global
51175117
Changes the effect of the|:mksession| command. It is a comma-
51185118
separated list of words. Each word enables saving and restoring

‎src/nvim/options.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,7 @@ return {
20632063
type='string',list='onecomma',scope={'global'},
20642064
deny_duplicates=true,
20652065
varname='p_ssop',
2066-
defaults={if_true="blank,buffers,curdir,folds,help,tabpages,winsize"}
2066+
defaults={if_true="blank,buffers,curdir,folds,help,tabpages,winsize,terminal"}
20672067
},
20682068
{
20692069
full_name='shada',abbreviation='sd',

‎test/functional/ex_cmds/mksession_spec.lua‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ describe(':mksession', function()
3737

3838
-- Create three windows: first two from top show same terminal, third -
3939
-- another one (created earlier).
40-
command('set sessionoptions+=terminal')
4140
command('terminal')
4241
command('split')
4342
command('terminal')
@@ -173,7 +172,6 @@ describe(':mksession', function()
173172
cwd_dir=cwd_dir:gsub([[\]],'/')-- :mksession always uses unix slashes.
174173
localsession_path=cwd_dir..'/'..session_file
175174

176-
command('set sessionoptions+=terminal')
177175
command('cd'..tab_dir)
178176
command('terminal')
179177
command('cd'..cwd_dir)
@@ -223,7 +221,6 @@ describe(':mksession', function()
223221
screen:expect(expected_screen)
224222

225223
command('cd'..cwd_dir)
226-
command('set sessionoptions+=terminal')
227224
command('mksession'..session_path)
228225
command('%bwipeout!')
229226

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp