Mercurial > vim
view runtime/macros/maze/mazeansi.c @ 28233:e31f1a949d4e v8.2.4643
patch 8.2.4643: Vim9: variable may be locked unintentionally
Commit: https://github.com/vim/vim/commit/24565cf27bc28cbd73f10e5ddf1e4ef53038a426
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 28 18:16:52 2022 +0100
patch 8.2.4643: Vim9: variable may be locked unintentionally
Problem: Vim9: variable may be locked unintentionally.
Solution: Clear "v_lock". (closes https://github.com/vim/vim/issues/10036)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 28 Mar 2022 19:30:03 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
char*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",& C) ;-- E;J [E ]=M [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|" ) , A = 39 ,C -- ) ; Z || printf (T ))T[Z]=Z[A-(E =A[J-Z])&&!C & A == M[ A] |6<<27<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}