summaryrefslogtreecommitdiffstats
path: root/test/fzf.vader
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2018-08-10 18:19:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2018-08-10 18:24:18 +0900
commit13803d0dbbe3b189af6d2ed6af983c1143a6b0e9 (patch)
tree9f3d4dc3231c09a3a897308636d94709abb8638e /test/fzf.vader
parent423986996a2957cbd1c3975d5f7d64cffe6d946d (diff)
[vim] Clear temporary window-local working directory
Close #1085 Close #1086 Close https://github.com/junegunn/fzf.vim/issues/678
Diffstat (limited to 'test/fzf.vader')
-rw-r--r--test/fzf.vader7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/fzf.vader b/test/fzf.vader
index faa94181..07f0c8de 100644
--- a/test/fzf.vader
+++ b/test/fzf.vader
@@ -8,10 +8,13 @@ Execute (fzf#run with dir option):
let cwd = getcwd()
let result = fzf#run({ 'source': 'git ls-files', 'options': '--filter=vdr', 'dir': g:dir })
AssertEqual ['fzf.vader'], result
+ AssertEqual 0, haslocaldir()
AssertEqual getcwd(), cwd
+ execute 'lcd' fnameescape(cwd)
let result = sort(fzf#run({ 'source': 'git ls-files', 'options': '--filter e', 'dir': g:dir }))
AssertEqual ['fzf.vader', 'test_go.rb'], result
+ AssertEqual 1, haslocaldir()
AssertEqual getcwd(), cwd
Execute (fzf#run with Funcref command):
@@ -56,11 +59,11 @@ Execute (Incomplete fzf#run with dir option and autochdir):
" No change in working directory even if &acd is set
AssertEqual cwd, getcwd()
-Execute (fzf#run with dir option and autochdir):
+Execute (FIXME: fzf#run with dir option and autochdir):
set acd
- let cwd = getcwd()
call fzf#run({'source': ['/foobar'], 'sink': 'e', 'dir': '/tmp', 'options': '-1'})
" Working directory changed due to &acd
+ AssertEqual '/foobar', expand('%')
AssertEqual '/', getcwd()
Execute (fzf#run with dir option and autochdir when final cwd is same as dir):