annotate pixmaps/tb_make.xpm @ 32724:83111104fb89

Update the vimscript code for restoring cursor position Commit: https://github.com/vim/vim/commit/81b8bf5b4a33552c610dc2ea743ac2698a16aef7 Author: Dragan Simic' via vim_dev <vim_dev@googlegroups.com> Date: Wed Aug 9 17:23:58 2023 +0200 Update the vimscript code for restoring cursor position Using xxd(1) to filter and edit binary files causes the input files to have dual nature, so to speak, which effectively makes restoring the cursor position broken. Fix that by ignoring the "xxd" file type in the code that restores the cursor position. Interactive rebasing in git causes files to be edited in vim, which, similarly to commit messages, are rarely the same as the last one edited. Thus, also add "gitrebase" to the list of file types for which the cursor position isn't restored. While there, refactor the code a bit to possibly save a few CPU cycles and to keep the line lengths in check, and use the long form of the commands and variables, to make the code slightly more consistent and more understandable to newcomers. Update the relevant comments in the code and the associated parts of the documentation, to keep them in sync with the updated code. Remove some redundant trailing whitespace as well, as spotted.
author Christian Brabandt <cb@256bit.org>
date Thu, 10 Aug 2023 07:00:04 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* XPM */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 static char * tb_make_xpm[] = {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 /* width height ncolors cpp [x_hot y_hot] */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 "18 18 4 1 0 0",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 /* colors */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " s none m none c none",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 ". s iconColor1 m black c #000000",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 "X s iconColor2 m none c #FFFFFF",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "o s bottomShadowColor m black c #5D6069",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 /* pixels */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " .. ..... ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " .XX.XXXXX. ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " .XXXXXXXXX. ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " .Xo.XXXX..X. ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " .. ....o .. ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " ... . ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " ...o ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " ooo ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " "};