Mercurial > vim
annotate pixmaps/tb_minwidth.xpm @ 24226:f49f80a0905d v8.2.2654
patch 8.2.2654: Vim9: getting a character from a string can be slow
Commit: https://github.com/vim/vim/commit/ff871400461183010d3ab98f3f326e4bb75e221b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 26 13:34:05 2021 +0100
patch 8.2.2654: Vim9: getting a character from a string can be slow
Problem: Vim9: getting a character from a string can be slow.
Solution: Avoid a function call to get the character byte size. (https://github.com/vim/vim/issues/8000)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Mar 2021 13:45:02 +0100 |
parents | 3fc0f57ecb91 |
children |
rev | line source |
---|---|
7 | 1 /* XPM */ |
2 static char * tb_minwidth_xpm[] = { | |
3 /* width height ncolors cpp [x_hot y_hot] */ | |
4 "18 18 5 1 0 0", | |
5 /* colors */ | |
6 " s none m none c none", | |
7 ". s topShadowColor m none c #DCDEE5", | |
8 "X s iconColor1 m black c #000000", | |
9 "o s iconColor2 m none c #FFFFFF", | |
10 "O s bottomShadowColor m black c #5D6069", | |
11 /* pixels */ | |
12 " ", | |
13 " ", | |
14 " .XXXXXX ", | |
15 " .X...oX ", | |
16 " .X...oX ", | |
17 " .X...oX ", | |
18 " X .X.o.oXO X ", | |
19 " XX .X...oXO XX ", | |
20 " XXX .X...oXO XXX ", | |
21 " XX .X...oXO XX ", | |
22 " X .X...oXO X ", | |
23 " .X...oXO ", | |
24 " .X..ooXO ", | |
25 " .XooooXO ", | |
26 " .XXXXXXO ", | |
27 " OOOOO ", | |
28 " ", | |
29 " "}; |