Mercurial > vim
view runtime/macros/maze/mazeansi.c @ 28887:0e207ddd939d v8.2.4966
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event
Commit: https://github.com/vim/vim/commit/e5162e76c0a8bd71fbfb0840a8c0014788d8808b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 16 16:41:35 2022 +0100
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event
Problem: MS-Windows GUI: mouse event test gets extra event.
Solution: Ignore one move event.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 May 2022 17:45: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,"_.":" |"];}