Mercurial > vim
view src/testdir/test67.in @ 11401:fc1939947789 v8.0.0585
patch 8.0.0585: test_options fails when run in the GUI
commit https://github.com/vim/vim/commit/86e5792906621be5a6c4a1de9b8852e9caf65ea1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 23 18:44:26 2017 +0200
patch 8.0.0585: test_options fails when run in the GUI
Problem: Test_options fails when run in the GUI.
Solution: Also check the 'imactivatekey' value when the GUI is not running.
Specify test values that work and that fail.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 23 Apr 2017 18:45:05 +0200 |
parents | e5dddd764fef |
children |
line wrap: on
line source
Test that groups and patterns are tested correctly when calling exists() for autocommands. STARTTEST :so small.vim :let results=[] :augroup auexists :augroup END :call add(results, "##BufEnter: " . exists("##BufEnter")) :call add(results, "#BufEnter: " . exists("#BufEnter")) :au BufEnter * let g:entered=1 :call add(results, "#BufEnter: " . exists("#BufEnter")) :call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter")) :augroup auexists :au BufEnter * let g:entered=1 :augroup END :call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter")) :call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test")) :au BufEnter *.test let g:entered=1 :call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test")) :edit testfile.test :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) :au BufEnter <buffer> let g:entered=1 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) :edit testfile2.test :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) :e! test.out :call append(0, results) :$d :w :qa! ENDTEST