annotate src/testdir/test_listchars.in @ 11836:f080b225a2a4 v8.0.0798

patch 8.0.0798: no highlighting in a terminal window with a finished job commit https://github.com/vim/vim/commit/63ecddab6d918214371ccaaeb10c118ae7c39d02 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 28 22:29:35 2017 +0200 patch 8.0.0798: no highlighting in a terminal window with a finished job Problem: No highlighting in a terminal window with a finished job. Solution: Highlight the text.
author Christian Brabandt <cb@256bit.org>
date Fri, 28 Jul 2017 22:30:05 +0200
parents 095b538d58a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6777
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for 'listchars' display with 'list' and :list
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
6824
095b538d58a6 patch 7.4.733
Bram Moolenaar <bram@vim.org>
parents: 6777
diff changeset
5 :set ff=unix
6777
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :let g:lines = []
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :function GetScreenCharsForLine(lnum)
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 : return join(map(range(1, virtcol('$')), 'nr2char(screenchar(a:lnum, v:val))'), '')
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :endfunction
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :nnoremap <expr> GG ":call add(g:lines, GetScreenCharsForLine(".screenrow()."))\<CR>"
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :set listchars+=tab:>-,space:.,trail:<
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :set list
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 /^start:/
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :normal! jzt
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 GGH:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :set listchars-=trail:<
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 GG:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :put =g:lines
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :'[,']w! test.out
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 ENDTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 start:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 aa
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 bb
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 cccc
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 dd ee
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 STARTTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 :set listchars+=trail:<
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 :set nolist
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 /^start:/
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :redir! >> test.out
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 :+1,$list
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 :redir END
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 :q!
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 ENDTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 start:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 fff
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 gg
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 h
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 iii