diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-02 22:52:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 22:52:28 +0200 |
commit | 9d58a58980c666a3abf515a1dd6b813b13d2d5ae (patch) | |
tree | e6abff32eb579a83495966a2939a72672d58b291 /test/functional/helpers.lua | |
parent | 49c51f839b537ac8ff60671030a8d7b2399ad4a7 (diff) | |
parent | 660fe979c1f3cc251e42eff99bfaee55c04ee4cc (diff) | |
download | rneovim-9d58a58980c666a3abf515a1dd6b813b13d2d5ae.tar.gz rneovim-9d58a58980c666a3abf515a1dd6b813b13d2d5ae.tar.bz2 rneovim-9d58a58980c666a3abf515a1dd6b813b13d2d5ae.zip |
Merge #9966 from justinmk/te-hl
terminal: swap priority of terminal, editor highlights
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, |