Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb24fec

Browse files
authored
defaults: exclude "S" from 'shortmess' #10136
ref #6289
1 parent f6f9e4a commit bb24fec

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

runtime/doc/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5254,7 +5254,7 @@ A jump table for the options with a short description can be found at |Q_op|.
52545254
function to get the effective shiftwidth value.
52555255

52565256
*'shortmess'* *'shm'*
5257-
'shortmess' 'shm' string (Vim default "filnxtToOFS", Vi default: "S")
5257+
'shortmess' 'shm' string (Vim default "filnxtToOF", Vi default: "S")
52585258
global
52595259
This option helps to avoid all the |hit-enter| prompts caused by file
52605260
messages, for example with CTRL-G, and to avoid some other messages.

runtime/doc/vim_diff.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ the differences.
5151
- 'nrformats' defaults to "bin,hex"
5252
- 'ruler' is set by default
5353
- 'sessionoptions' doesn't include "options"
54-
- 'shortmess' sets "F" flag
54+
- 'shortmess' includes "F", excludes "S"
5555
- 'showcmd' is set by default
5656
- 'sidescroll' defaults to 1
5757
- 'smarttab' is set by default

src/nvim/options.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ return {
21342134
type='string', list='flags', scope={'global'},
21352135
vim=true,
21362136
varname='p_shm',
2137-
defaults={if_true={vi="S", vim="filnxtToOFS"}}
2137+
defaults={if_true={vi="S", vim="filnxtToOF"}}
21382138
},
21392139
{
21402140
full_name='showbreak', abbreviation='sbr',

test/functional/helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local nvim_prog = (
2626
or global_helpers.test_build_dir .. '/bin/nvim'
2727
)
2828
-- Default settings for the test session.
29-
local nvim_set = 'set shortmess+=I background=light noswapfile noautoindent'
29+
local nvim_set = 'set shortmess+=IS background=light noswapfile noautoindent'
3030
..' laststatus=1 undodir=. directory=. viewdir=. backupdir=.'
3131
..' belloff= noshowcmd noruler nomore'
3232
local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE',

0 commit comments

Comments
 (0)