diff options
| author | lokesh1197 <lokesh1197@gmail.com> | 2018-02-28 16:36:14 +0530 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-30 19:47:59 +0100 |
| commit | 3159cd4503ae39301e010abe79c2d304437ee5c5 (patch) | |
| tree | a9a05dceae909bacf268bfe8d9eb540c99b1af25 /src/nvim/testdir/shared.vim | |
| parent | 500345aea2ef88b45e0905043ed435ad4676bcef (diff) | |
| download | rneovim-3159cd4503ae39301e010abe79c2d304437ee5c5.tar.gz rneovim-3159cd4503ae39301e010abe79c2d304437ee5c5.tar.bz2 rneovim-3159cd4503ae39301e010abe79c2d304437ee5c5.zip | |
vim-patch:8.0.1553: find digraph to insert a character #8190
Problem: Cannot see what digraph is used to insert a character.
Solution: Show the digraph with the "ga" command. (Christian Brabandt)
https://github.com/vim/vim/commit/5f73ef8d20070cd45c9aea4dc33c2e0657f5515c
close #8190
Diffstat (limited to 'src/nvim/testdir/shared.vim')
| -rw-r--r-- | src/nvim/testdir/shared.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim index b2fe9413e8..b1f1d8fe66 100644 --- a/src/nvim/testdir/shared.vim +++ b/src/nvim/testdir/shared.vim @@ -237,3 +237,14 @@ func RunVimPiped(before, after, arguments, pipecmd) endif return 1 endfunc + +" Get line "lnum" as displayed on the screen. +" Trailing white space is trimmed. +func! Screenline(lnum) + let chars = [] + for c in range(1, winwidth(0)) + call add(chars, nr2char(screenchar(a:lnum, c))) + endfor + let line = join(chars, '') + return matchstr(line, '^.\{-}\ze\s*$') +endfunc |