From 7085ea07d8e5f976260476f2e84c38b3a3bf0407 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 19 Sep 2015 20:57:49 +0300 Subject: functests: Move exc_exec to test.functional.helpers --- test/functional/shada/helpers.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'test/functional/shada/helpers.lua') diff --git a/test/functional/shada/helpers.lua b/test/functional/shada/helpers.lua index b3153ca7f1..3af92112cb 100644 --- a/test/functional/shada/helpers.lua +++ b/test/functional/shada/helpers.lua @@ -42,19 +42,6 @@ local clear = function() set_additional_cmd('') end -local exc_exec = function(cmd) - nvim_command(([[ - try - execute "%s" - catch - let g:__exception = v:exception - endtry - ]]):format(cmd:gsub('\n', '\\n'):gsub('[\\"]', '\\%0'))) - local ret = nvim_eval('get(g:, "__exception", 0)') - nvim_command('unlet! g:__exception') - return ret -end - local get_shada_rw = function(fname) local wshada = function(text) write_file(fname, text, true) -- cgit