annotate src/testdir/test_listchars.in @ 12170:1345621ecdfb v8.0.0965

patch 8.0.0965: not restoring cursor shape after it was set in a terminal commit https://github.com/vim/vim/commit/3eee06e7d4c3a8e2dbb2577a1eef0e0f108e0288 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 19 19:40:50 2017 +0200 patch 8.0.0965: not restoring cursor shape after it was set in a terminal Problem: The cursor shape is not reset after it was changed in a terminal. Solution: Request the original cursor shape and restore it. Add t_RS. Do not add t_SH for now, it does not work properly.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2017 19:45:04 +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