Mercurial > vim
view runtime/tools/emoji_list.vim @ 30711:e1fbb6571b58 v9.0.0690
patch 9.0.0690: buffer size for expanding tab not correctly computed
Commit: https://github.com/vim/vim/commit/a0789478f6ebbb823670b7e14ce13ea3fd3b0217
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 8 11:16:40 2022 +0100
patch 9.0.0690: buffer size for expanding tab not correctly computed
Problem: Buffer size for expanding tab not correctly computed.
Solution: Correctly use size of end character.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Oct 2022 12:30:06 +0200 |
parents | 99ef85ff1af4 |
children |
line wrap: on
line source
" Script to fill the window with emoji characters, one per line. " Source this script: :source % if &modified new else enew endif " Use a compiled Vim9 function for speed def DoIt() var lnum = 1 for c in range(0x100, 0x1ffff) var cs = nr2char(c) if charclass(cs) == 3 setline(lnum, '|' .. cs .. '| ' .. strwidth(cs)) lnum += 1 endif endfor enddef call DoIt() set nomodified