Mercurial > vim
comparison src/testdir/test_gn.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 | 6d3584b60170 |
children | 96933f0ecbd1 |
comparison
equal
deleted
inserted
replaced
12643:f88dfd7fd3bc | 12644:1fad9675d8fd |
---|---|
1 " Test for gn command | 1 " Test for gn command |
2 | 2 |
3 func Test_gn_command() | 3 func Test_gn_command() |
4 set belloff=all | |
5 noautocmd new | 4 noautocmd new |
6 " replace a single char by itsself quoted: | 5 " replace a single char by itsself quoted: |
7 call setline('.', 'abc x def x ghi x jkl') | 6 call setline('.', 'abc x def x ghi x jkl') |
8 let @/='x' | 7 let @/='x' |
9 exe "norm! cgn'x'\<esc>.." | 8 exe "norm! cgn'x'\<esc>.." |
119 norm! dgN | 118 norm! dgN |
120 call assert_equal(['foo', 'bar', '', 'baz'], getline(1,'$')) | 119 call assert_equal(['foo', 'bar', '', 'baz'], getline(1,'$')) |
121 sil! %d_ | 120 sil! %d_ |
122 | 121 |
123 set wrapscan&vim | 122 set wrapscan&vim |
124 set belloff&vim | |
125 endfu | 123 endfu |
126 | 124 |
127 " vim: shiftwidth=2 sts=2 expandtab | 125 " vim: shiftwidth=2 sts=2 expandtab |