comparison src/testdir/test_arabic.vim @ 13359:81c348d40312 v8.0.1553

patch 8.0.1553: cannot see what digraph is used to insert a character commit https://github.com/vim/vim/commit/5f73ef8d20070cd45c9aea4dc33c2e0657f5515c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 27 21:09:30 2018 +0100 patch 8.0.1553: cannot see what digraph is used to insert a character Problem: Cannot see what digraph is used to insert a character. Solution: Show the digraph with the "ga" command. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 27 Feb 2018 21:15:06 +0100
parents 3fa27b97d263
children 2dcaa860e3fc
comparison
equal deleted inserted replaced
13358:0a3d1708d414 13359:81c348d40312
14 call cursor(a:lnum, 1) 14 call cursor(a:lnum, 1)
15 let chars = [] 15 let chars = []
16 let numchars = strchars(getline('.'), 1) 16 let numchars = strchars(getline('.'), 1)
17 for i in range(1, numchars) 17 for i in range(1, numchars)
18 exe 'norm ' i . '|' 18 exe 'norm ' i . '|'
19 let c=execute('ascii') 19 let c = execute('ascii')
20 let c=substitute(c, '\n\?<.\{-}Hex\s*', 'U+', 'g') 20 let c = substitute(c, '\n\?<.\{-}Hex\s*', 'U+', 'g')
21 let c=substitute(c, ',\s*Octal\s*\d*', '', 'g') 21 let c = substitute(c, ',\s*Oct\(al\)\=\s\d*\(, Digr ..\)\=', '', 'g')
22 call add(chars, c) 22 call add(chars, c)
23 endfor 23 endfor
24 return chars 24 return chars
25 endfunc 25 endfunc
26 26