aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-13 04:09:37 +0100
committerGitHub <noreply@github.com>2017-01-13 04:09:37 +0100
commitf68663542037aaa4ae954aacae7adf2e88b151d5 (patch)
tree4e007995ce7eed3937d8aeb791cf25f0f5ea1e19 /test/functional/helpers.lua
parent802b49ee803aed63c15bd35ffc10e1ba2ba30e59 (diff)
parent82edcb593b19755187371635d7b5aabdf024bd1f (diff)
downloadrneovim-f68663542037aaa4ae954aacae7adf2e88b151d5.tar.gz
rneovim-f68663542037aaa4ae954aacae7adf2e88b151d5.tar.bz2
rneovim-f68663542037aaa4ae954aacae7adf2e88b151d5.zip
Merge #5933 from justinmk/dir-bufenter
open_buffer(): Raise `BufEnter` for directories.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 5eec3afe65..2939184d2c 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -346,6 +346,14 @@ local function source(code)
return fname
end
+local function set_shell_powershell()
+ source([[
+ set shell=powershell shellquote=\" shellpipe=\| shellredir=>
+ set shellcmdflag=\ -ExecutionPolicy\ RemoteSigned\ -Command
+ let &shellxquote=' '
+ ]])
+end
+
local function nvim(method, ...)
return request('nvim_'..method, ...)
end
@@ -590,6 +598,7 @@ return function(after_each)
curtabmeths = curtabmeths,
pending_win32 = pending_win32,
skip_fragile = skip_fragile,
+ set_shell_powershell = set_shell_powershell,
tmpname = tmpname,
NIL = mpack.NIL,
}