Mercurial > vim
view pixmaps/tb_save.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_save_xpm[] = { /* width height ncolors cpp [x_hot y_hot] */ "18 18 5 1 0 0", /* colors */ " s none m none c none", ". s iconColor1 m black c #000000", "X s iconGray2 m none c #bdbdbd", "o s iconColor2 m none c #FFFFFF", "O s bottomShadowColor m black c #5D6069", /* pixels */ " ", " .............. ", " .X.oooooooo.o. ", " .X.oooooooo...O ", " .X.oooooooo.X.O ", " .X.oooooooo.X.O ", " .X.oooooooo.X.O ", " .X.oooooooo.X.O ", " .XX........XX.O ", " .XXXXXXXXXXXX.O ", " .XX.........X.O ", " .XX......oo.X.O ", " .XX......oo.X.O ", " .XX......oo.X.O ", " .............O ", " OOOOOOOOOOOOO ", " ", " "};