diff options
author | ZyX <kp-pav@yandex.ru> | 2015-09-19 20:57:49 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:01:10 +0300 |
commit | 7085ea07d8e5f976260476f2e84c38b3a3bf0407 (patch) | |
tree | 001978f4df5e55a15047d1d80013651adbbbf94a /test/functional/shada/helpers.lua | |
parent | 56a2549ff8bf2d02bdcf0c0946344d090d958e20 (diff) | |
download | rneovim-7085ea07d8e5f976260476f2e84c38b3a3bf0407.tar.gz rneovim-7085ea07d8e5f976260476f2e84c38b3a3bf0407.tar.bz2 rneovim-7085ea07d8e5f976260476f2e84c38b3a3bf0407.zip |
functests: Move exc_exec to test.functional.helpers
Diffstat (limited to 'test/functional/shada/helpers.lua')
-rw-r--r-- | test/functional/shada/helpers.lua | 13 |
1 files changed, 0 insertions, 13 deletions
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) |