Mercurial > vim
comparison src/testdir/shared.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 | 33a2277b8d4d |
children | fa198b71bab2 |
comparison
equal
deleted
inserted
replaced
13358:0a3d1708d414 | 13359:81c348d40312 |
---|---|
257 endfunc | 257 endfunc |
258 | 258 |
259 func CanRunGui() | 259 func CanRunGui() |
260 return has('gui') && ($DISPLAY != "" || has('gui_running')) | 260 return has('gui') && ($DISPLAY != "" || has('gui_running')) |
261 endfunc | 261 endfunc |
262 | |
263 " Get line "lnum" as displayed on the screen. | |
264 " Trailing white space is trimmed. | |
265 func! Screenline(lnum) | |
266 let chars = [] | |
267 for c in range(1, winwidth(0)) | |
268 call add(chars, nr2char(screenchar(a:lnum, c))) | |
269 endfor | |
270 let line = join(chars, '') | |
271 return matchstr(line, '^.\{-}\ze\s*$') | |
272 endfunc |