Mercurial > vim
view src/testdir/test_exists_autocmd.vim @ 16360:7a8706e25c2d v8.1.1185
patch 8.1.1185: mapping for CTRL-X is inconsistent
commit https://github.com/vim/vim/commit/86ec6d7e1e037e839879a5c05c2ee77db27fb557
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 18 21:09:02 2019 +0200
patch 8.1.1185: mapping for CTRL-X is inconsistent
Problem: Mapping for CTRL-X is inconsistent.
Solution: Map CTRL-X to "*d also for the MS-Windows console. (Ken Takata,
closes #4265)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Apr 2019 21:15:05 +0200 |
parents | 140d51d5b5c3 |
children | 08940efa6b4e |
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