Mercurial > vim
view src/testdir/test_exists_autocmd.vim @ 29898:3276298c67c5 v9.0.0287
patch 9.0.0287: Irix systems no longer exist
Commit: https://github.com/vim/vim/commit/aebc6ef7cdc5d4d0627a711ff66e6fe8d67f9d87
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Aug 27 21:24:26 2022 +0100
patch 9.0.0287: Irix systems no longer exist
Problem: Irix systems no longer exist.
Solution: Remove references to Irix. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/10994)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Aug 2022 22:30:03 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test that groups and patterns are tested correctly when calling exists() for " autocommands. function Test_AutoCommands() let results=[] augroup auexists augroup END call assert_true(exists("##BufEnter")) call assert_false(exists("#BufEnter")) au BufEnter * let g:entered=1 call assert_true(exists("#BufEnter")) call assert_false(exists("#auexists#BufEnter")) augroup auexists au BufEnter * let g:entered=1 augroup END call assert_true(exists("#auexists#BufEnter")) call assert_false(exists("#BufEnter#*.test")) au BufEnter *.test let g:entered=1 call assert_true(exists("#BufEnter#*.test")) edit testfile.test call assert_false(exists("#BufEnter#<buffer>")) au BufEnter <buffer> let g:entered=1 call assert_true(exists("#BufEnter#<buffer>")) edit testfile2.test call assert_false(exists("#BufEnter#<buffer>")) endfunction " vim: shiftwidth=2 sts=2 expandtab