diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-22 08:18:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 08:18:02 +0200 |
commit | b7514493a0c4a4389a5921f15b0b429dae5c75e7 (patch) | |
tree | 625d39a763124fe284e24caaf4e1a1c52651893a /test | |
parent | cf659a19260aea27816575d67a12139ebaada56f (diff) | |
download | rneovim-b7514493a0c4a4389a5921f15b0b429dae5c75e7.tar.gz rneovim-b7514493a0c4a4389a5921f15b0b429dae5c75e7.tar.bz2 rneovim-b7514493a0c4a4389a5921f15b0b429dae5c75e7.zip |
defaults: shortmess+=F (#8619)
Because we default to laststatus=2 (statusline is always visible), the
:edit message is not useful.
ref #6289
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ex_cmds/drop_spec.lua | 3 | ||||
-rw-r--r-- | test/functional/legacy/108_backtrace_debug_commands_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/options/shortmess_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ui/input_spec.lua | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/ex_cmds/drop_spec.lua b/test/functional/ex_cmds/drop_spec.lua index 30dbd27d37..d6da0d8e88 100644 --- a/test/functional/ex_cmds/drop_spec.lua +++ b/test/functional/ex_cmds/drop_spec.lua @@ -1,4 +1,5 @@ local helpers = require('test.functional.helpers')(after_each) +local command = helpers.command local Screen = require('test.functional.ui.screen') local clear, feed, feed_command = helpers.clear, helpers.feed, helpers.feed_command @@ -15,7 +16,7 @@ describe(":drop", function() [2] = {reverse = true}, [3] = {bold = true}, }) - feed_command("set laststatus=2") + command("set laststatus=2 shortmess-=F") end) after_each(function() diff --git a/test/functional/legacy/108_backtrace_debug_commands_spec.lua b/test/functional/legacy/108_backtrace_debug_commands_spec.lua index ff1917e90c..9ace4ef093 100644 --- a/test/functional/legacy/108_backtrace_debug_commands_spec.lua +++ b/test/functional/legacy/108_backtrace_debug_commands_spec.lua @@ -1,6 +1,7 @@ -- Tests for backtrace debug commands. local helpers = require('test.functional.helpers')(after_each) +local command = helpers.command local feed, clear = helpers.feed, helpers.clear local feed_command, expect = helpers.feed_command, helpers.expect @@ -8,6 +9,7 @@ describe('108', function() before_each(clear) it('is working', function() + command("set shortmess-=F") feed_command('lang mess C') feed_command('function! Foo()') feed_command(' let var1 = 1') diff --git a/test/functional/options/shortmess_spec.lua b/test/functional/options/shortmess_spec.lua index 99a574ec46..96823476de 100644 --- a/test/functional/options/shortmess_spec.lua +++ b/test/functional/options/shortmess_spec.lua @@ -1,5 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') +local command = helpers.command local clear, feed_command = helpers.clear, helpers.feed_command if helpers.pending_win32(pending) then return end @@ -19,6 +20,7 @@ describe("'shortmess'", function() describe('"F" flag', function() it('hides messages about the files read', function() + command("set shortmess-=F") feed_command('e test') screen:expect([[ ^ | diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua index 3dd9a2506e..7f9cd190ee 100644 --- a/test/functional/ui/input_spec.lua +++ b/test/functional/ui/input_spec.lua @@ -142,7 +142,7 @@ describe('input non-printable chars', function() [3] = {bold = true, foreground = Screen.colors.SeaGreen4} }) screen:attach() - command("set display-=msgsep") + command("set display-=msgsep shortmess-=F") feed_command("e Xtest-overwrite") screen:expect([[ |