aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/oldfiles_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-10 03:39:00 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-16 18:44:10 +0100
commita90beeadbb5dfbe443eae3c057c79a9cefa47ad6 (patch)
treeaf7893fc900e32a9f241a4db8b9b06ad403ac5ed /test/functional/ex_cmds/oldfiles_spec.lua
parentad1884be0dcf029f7467e5cfad8ffe7c8ba461b6 (diff)
downloadrneovim-a90beeadbb5dfbe443eae3c057c79a9cefa47ad6.tar.gz
rneovim-a90beeadbb5dfbe443eae3c057c79a9cefa47ad6.tar.bz2
rneovim-a90beeadbb5dfbe443eae3c057c79a9cefa47ad6.zip
defaults: 'showcmd', 'belloff', 'ruler'
- Vim "unix default" of 'noshowcmd' is serving few users. And it's inconsistent. - 'ruler' and 'belloff=all' improve the out-of-the-box experience. - Continue to use 'noshowcmd' and 'noruler' by default in the functional tests to keep them fast. TODO: Add a "disable slow stuff" command or mapping to address the use-case of a very slow terminal connection.
Diffstat (limited to 'test/functional/ex_cmds/oldfiles_spec.lua')
-rw-r--r--test/functional/ex_cmds/oldfiles_spec.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/functional/ex_cmds/oldfiles_spec.lua b/test/functional/ex_cmds/oldfiles_spec.lua
index a218bb6633..a161e49fc6 100644
--- a/test/functional/ex_cmds/oldfiles_spec.lua
+++ b/test/functional/ex_cmds/oldfiles_spec.lua
@@ -7,14 +7,10 @@ local ok, set_session, spawn = helpers.ok, helpers.set_session, helpers.spawn
local shada_file = 'test.shada'
---
--- helpers.clear() uses "-i NONE", which is not useful for this test.
---
local function _clear()
- set_session(spawn({nvim_prog,
- '-u', 'NONE',
- '--cmd', 'set noswapfile undodir=. directory=. viewdir=. backupdir=.',
- '--embed'}))
+ set_session(spawn({nvim_prog, '--embed', '-u', 'NONE', '--cmd',
+ -- Need shada for these tests.
+ 'set noswapfile undodir=. directory=. viewdir=. backupdir=. belloff= noshowcmd noruler'}))
end
describe(':oldfiles', function()
@@ -63,7 +59,7 @@ describe(':browse oldfiles', function()
_clear()
execute('rshada! ' .. shada_file)
- -- Ensure nvim is out of "Press ENTER..." screen
+ -- Ensure nvim is out of "Press ENTER..." prompt.
feed('<cr>')
-- Ensure v:oldfiles isn't busted. Since things happen so fast,