Mercurial > vim
view pixmaps/tb_macro.xpm @ 22266:23f5750146d9 v8.2.1682
patch 8.2.1682: Vim9: const works in an unexpected way
Commit: https://github.com/vim/vim/commit/dbeecb2b6bc5bf90b7345807e0a313fe890a7c7b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 14 18:15:09 2020 +0200
patch 8.2.1682: Vim9: const works in an unexpected way
Problem: Vim9: const works in an unexpected way.
Solution: ":const" only disallows changing the variable, not the value.
Make "list[0] = 9" work at the script level.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Sep 2020 18:30:04 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
/* XPM */ static char * tb_macro_xpm[] = { /* width height ncolors cpp [x_hot y_hot] */ "18 18 4 1 0 0", /* colors */ " s none m none c none", ". s iconColor1 m black c #000000", "X s bottomShadowColor m black c #5D6069", "o s iconColor2 m none c #FFFFFF", /* pixels */ " ..X ", " .oo.X ", " .oooo.X ", " .oooo.X ", " .oo.XX ", " ..XX ", " .....o.X ", " .ooooooo.X ", " .oooooooo.X ", " .....ooo.X ", " ..ooo.X ", " .ooooo.X ", " .ooooooo.X ", " .ooo...ooo.X ", " .ooo.XX..ooo.X ", " .oo.XX X.oo.X ", " ...X X...X ", " XX XXX "};