comparison src/testdir/test_listchars.in @ 6824:095b538d58a6 v7.4.733

patch 7.4.733 Problem: test_listchars breaks on MS-Windows. (Kenichi Ito) Solution: Set fileformat to "unix". (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 09 Jun 2015 19:58:32 +0200
parents a8962f0e0d34
children
comparison
equal deleted inserted replaced
6823:0303182665d5 6824:095b538d58a6
1 Tests for 'listchars' display with 'list' and :list 1 Tests for 'listchars' display with 'list' and :list
2 2
3 STARTTEST 3 STARTTEST
4 :so small.vim 4 :so small.vim
5 :set ff=unix
5 :let g:lines = [] 6 :let g:lines = []
6 :function GetScreenCharsForLine(lnum) 7 :function GetScreenCharsForLine(lnum)
7 : return join(map(range(1, virtcol('$')), 'nr2char(screenchar(a:lnum, v:val))'), '') 8 : return join(map(range(1, virtcol('$')), 'nr2char(screenchar(a:lnum, v:val))'), '')
8 :endfunction 9 :endfunction
9 :nnoremap <expr> GG ":call add(g:lines, GetScreenCharsForLine(".screenrow()."))\<CR>" 10 :nnoremap <expr> GG ":call add(g:lines, GetScreenCharsForLine(".screenrow()."))\<CR>"