encoding: test that &encoding cannot be changed

Helped-By: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
Björn Linse
2015-08-29 17:10:06 +02:00
parent ffff2c9c47
commit 087f3bacaf
2 changed files with 47 additions and 2 deletions

View File

@@ -183,11 +183,16 @@ local function spawn(argv)
return session
end
local function clear()
local function clear(extra_cmd)
if session then
session:exit(0)
end
session = spawn(nvim_argv)
local args = {unpack(nvim_argv)}
if extra_cmd ~= nil then
table.insert(args, '--cmd')
table.insert(args, extra_cmd)
end
session = spawn(args)
end
local function insert(...)