Mercurial > vim
annotate src/testdir/test103.in @ 11662:6ab627207f4c v8.0.0713
patch 8.0.0713: 'termkey' option not fully implemented
commit https://github.com/vim/vim/commit/0daf843b4cad734df6be16573423206eae43028b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 15 15:16:40 2017 +0200
patch 8.0.0713: 'termkey' option not fully implemented
Problem: 'termkey' option not fully implemented.
Solution: Add initialisation.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Jul 2017 15:30:03 +0200 |
parents | ae45d497868f |
children |
rev | line source |
---|---|
5498 | 1 Test for visual mode not being reset causing E315 error. |
2 STARTTEST | |
3 :so small.vim | |
11091
ae45d497868f
patch 8.0.0433: beeps when running tests
Christian Brabandt <cb@256bit.org>
parents:
5498
diff
changeset
|
4 :set belloff=all |
5498 | 5 :enew |
6 :let g:msg="Everything's fine." | |
7 :function! TriggerTheProblem() | |
8 : " At this point there is no visual selection because :call reset it. | |
9 : " Let's restore the selection: | |
10 : normal gv | |
11 : '<,'>del _ | |
12 : try | |
13 : exe "normal \<Esc>" | |
14 : catch /^Vim\%((\a\+)\)\=:E315/ | |
15 : echom 'Snap! E315 error!' | |
16 : let g:msg='Snap! E315 error!' | |
17 : endtry | |
18 :endfunction | |
19 :enew | |
20 :setl buftype=nofile | |
21 :call append(line('$'), 'Delete this line.') | |
22 :" | |
23 :" | |
24 :" NOTE: this has to be done by a call to a function because executing :del the | |
25 :" ex-way will require the colon operator which resets the visual mode thus | |
26 :" preventing the problem: | |
27 :" | |
28 GV:call TriggerTheProblem() | |
29 :%del _ | |
30 :call append(line('$'), g:msg) | |
31 :w! test.out | |
32 :brewind | |
33 ENDTEST | |
34 | |
35 STARTTEST | |
36 :qa! | |
37 ENDTEST | |
38 |