summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-26 21:00:08 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-26 21:00:08 +0100
commit1473551a4457d4920b235eeeb9f279e196ee7225 (patch)
treebd0515b263f9f2ea82effe2ef09073512078e838 /src/testdir/test_autocmd.vim
parent8fdd7210479f0c486822ad8934087b4bfd8a4765 (diff)
patch 7.4.1658v7.4.1658
Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r--src/testdir/test_autocmd.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
new file mode 100644
index 0000000000..12c984888e
--- /dev/null
+++ b/src/testdir/test_autocmd.vim
@@ -0,0 +1,8 @@
+" Tests for autocommands
+
+func Test_vim_did_enter()
+ call assert_false(v:vim_did_enter)
+
+ " This script will never reach the main loop, can't check if v:vim_did_enter
+ " becomes one.
+endfunc