To: vim_dev@googlegroups.com Subject: Patch 8.2.1540 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1540 Problem: The user cannot try out emoji character widths. Solution: Move the emoji script to the runtime/tools directory. Files: Filelist, src/testdir/emoji_list.vim, runtime/tools/emoji_list.vim *** ../vim-8.2.1539/Filelist 2020-08-28 22:24:40.656494333 +0200 --- Filelist 2020-08-29 15:29:17.870863060 +0200 *************** *** 197,203 **** src/testdir/samples/*.txt \ src/testdir/samples/test000 \ src/testdir/color_ramp.vim \ - src/testdir/emoji_list.vim \ src/testdir/silent.wav \ src/testdir/popupbounce.vim \ src/proto.h \ --- 197,202 ---- *** ../vim-8.2.1539/src/testdir/emoji_list.vim 2020-08-28 22:24:40.660494318 +0200 --- src/testdir/emoji_list.vim 1970-01-01 01:00:00.000000000 +0100 *************** *** 1,22 **** - " Script to fill the window with emoji characters, one per line. - - if &modified - new - else - enew - endif - - " Use a compiled Vim9 function for speed - def DoIt() - let lnum = 1 - for c in range(0x100, 0x1ffff) - let cs = nr2char(c) - if charclass(cs) == 3 - setline(lnum, '|' .. cs .. '| ' .. strwidth(cs)) - lnum += 1 - endif - endfor - enddef - - call DoIt() - set nomodified --- 0 ---- *** ../vim-8.2.1539/runtime/tools/emoji_list.vim 2020-08-29 16:40:12.201502368 +0200 --- runtime/tools/emoji_list.vim 2020-08-29 15:38:50.632576239 +0200 *************** *** 0 **** --- 1,23 ---- + " 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() + let lnum = 1 + for c in range(0x100, 0x1ffff) + let cs = nr2char(c) + if charclass(cs) == 3 + setline(lnum, '|' .. cs .. '| ' .. strwidth(cs)) + lnum += 1 + endif + endfor + enddef + + call DoIt() + set nomodified *** ../vim-8.2.1539/src/version.c 2020-08-29 13:39:12.578557657 +0200 --- src/version.c 2020-08-29 13:56:56.615188509 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1540, /**/ -- GALAHAD: No, please. Please! I can defeat them! There's only a hundred. GIRLS: He will beat us easily. We haven't a chance. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///