Mercurial > vim
view src/testdir/test_exists_autocmd.vim @ 16485:b870146e09e1 v8.1.1246
patch 8.1.1246: cannot handle negative mouse coordinate from urxvt
commit https://github.com/vim/vim/commit/bb7e1b4ba82eaa6f8c7a59f1314056e3c404437a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 2 20:24:12 2019 +0200
patch 8.1.1246: cannot handle negative mouse coordinate from urxvt
Problem: Cannot handle negative mouse coordinate from urxvt.
Solution: Accept '-' where a digit is expected. (Vincent Vinel,
closes #4326)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 May 2019 20:30:07 +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