diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-02 09:56:22 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-02 09:56:22 +0200 |
commit | fd0fd752c872428cc4fb9c95721eab1b505fc111 (patch) | |
tree | 82b1f3d0635af4b2ce170b0f2768691df2855062 /test/functional/helpers.lua | |
parent | 49c51f839b537ac8ff60671030a8d7b2399ad4a7 (diff) | |
download | rneovim-fd0fd752c872428cc4fb9c95721eab1b505fc111.tar.gz rneovim-fd0fd752c872428cc4fb9c95721eab1b505fc111.tar.bz2 rneovim-fd0fd752c872428cc4fb9c95721eab1b505fc111.zip |
terminal: swap priority of terminal, editor highlights
closes #9964
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 7851a0fcba..fd10a6afcd 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -238,6 +238,16 @@ local function stop() session:stop() end +local function nvim_prog_abs() + -- system(['build/bin/nvim']) does not work for whatever reason. It must + -- be executable searched in $PATH or something starting with / or ./. + if nvim_prog:match('[/\\]') then + return request('nvim_call_function', 'fnamemodify', {nvim_prog, ':p'}) + else + return nvim_prog + end +end + -- Executes an ex-command. VimL errors manifest as client (lua) errors, but -- v:errmsg will not be updated. local function nvim_command(cmd) @@ -826,6 +836,7 @@ local module = { nvim_async = nvim_async, nvim_dir = nvim_dir, nvim_prog = nvim_prog, + nvim_prog_abs = nvim_prog_abs, nvim_set = nvim_set, ok = ok, os_name = os_name, |