aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/options.txt4
-rw-r--r--src/nvim/buffer.c6
-rw-r--r--test/functional/options/shortmess_spec.lua (renamed from test/functional/ui/shortmess_spec.lua)5
3 files changed, 7 insertions, 8 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 29f4e671ed..dbc87a8676 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -5538,8 +5538,8 @@ A jump table for the options with a short description can be found at |Q_op|.
c don't give |ins-completion-menu| messages. For example,
"-- XXX completion (YYY)", "match 1 of 2", "The only match",
"Pattern not found", "Back at original", etc.
- q use "recording" instead of "recording @a"
- F don't give the file info when editing a file, like `:silent`
+ q use "recording" instead of "recording @a"
+ F don't give the file info when editing a file, like `:silent`
was used for the command
This gives you the opportunity to avoid that a change between buffers
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 4661a191a9..8d3769cb54 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -141,8 +141,7 @@ open_buffer (
/* mark cursor position as being invalid */
curwin->w_valid = 0;
- if (curbuf->b_ffname != NULL
- ) {
+ if (curbuf->b_ffname != NULL) {
int old_msg_silent = msg_silent;
if (shortmess(SHM_FILEINFO)) {
msg_silent = 1;
@@ -154,8 +153,9 @@ open_buffer (
msg_silent = old_msg_silent;
// Help buffer is filtered.
- if (curbuf->b_help)
+ if (curbuf->b_help) {
fix_help_buffer();
+ }
} else if (read_stdin) {
int save_bin = curbuf->b_p_bin;
linenr_T line_count;
diff --git a/test/functional/ui/shortmess_spec.lua b/test/functional/options/shortmess_spec.lua
index e58e33f6c3..04a64d2943 100644
--- a/test/functional/ui/shortmess_spec.lua
+++ b/test/functional/options/shortmess_spec.lua
@@ -9,15 +9,14 @@ describe("'shortmess'", function()
clear()
screen = Screen.new(25, 5)
screen:attach()
- execute('set shortmess&')
end)
after_each(function()
screen:detach()
end)
- describe("=F", function()
- it(':hides messages about the files read', function()
+ describe('"F" flag', function()
+ it('hides messages about the files read', function()
execute('e test')
screen:expect([[
^ |