From 3159cd4503ae39301e010abe79c2d304437ee5c5 Mon Sep 17 00:00:00 2001 From: lokesh1197 Date: Wed, 28 Feb 2018 16:36:14 +0530 Subject: 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 --- src/nvim/testdir/shared.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/nvim/testdir/shared.vim') 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 -- cgit