mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
encoding: test that &encoding cannot be changed
Helped-By: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
@@ -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(...)
|
||||
|
||||
Reference in New Issue
Block a user