comparison src/testdir/test_autocmd.vim @ 12644:1fad9675d8fd v8.0.1200

patch 8.0.1200: tests switch the bell off twice commit https://github.com/vim/vim/commit/67418d97b457d2e27fe342472d3c9fd342ffc47f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 15 22:07:39 2017 +0200 patch 8.0.1200: tests switch the bell off twice Problem: Tests switch the bell off twice. Solution: Don't set 'belloff' in individual tests. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Oct 2017 22:15:04 +0200
parents 560adb3eed8b
children 272ecbaf1b4f
comparison
equal deleted inserted replaced
12643:f88dfd7fd3bc 12644:1fad9675d8fd
1 " Tests for autocommands 1 " Tests for autocommands
2 2
3 set belloff=all
4 3
5 func! s:cleanup_buffers() abort 4 func! s:cleanup_buffers() abort
6 for bnr in range(1, bufnr('$')) 5 for bnr in range(1, bufnr('$'))
7 if bufloaded(bnr) && bufnr('%') != bnr 6 if bufloaded(bnr) && bufnr('%') != bnr
8 execute 'bd! ' . bnr 7 execute 'bd! ' . bnr