view src/libvterm/t/92lp1640917.test @ 19671:897cb43a5c72 v8.2.0392

patch 8.2.0392: Coverity warns for using array index out of range Commit: https://github.com/vim/vim/commit/56cb3378727783da2d246b9c5091784821666cfa Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 16 20:04:41 2020 +0100 patch 8.2.0392: Coverity warns for using array index out of range Problem: Coverity warns for using array index out of range. Solution: Add extra "if" to avoid warning.
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Mar 2020 20:15:04 +0100
parents b8299e742f41
children
line wrap: on
line source

INIT
WANTSTATE 

!Mouse reporting should not break by idempotent DECSM 1002
PUSH "\e[?1002h"
MOUSEMOVE 0,0 0
MOUSEBTN d 1 0
  output "\e[M\x20\x21\x21"
MOUSEMOVE 1,0 0
  output "\e[M\x40\x21\x22"
PUSH "\e[?1002h"
MOUSEMOVE 2,0 0
  output "\e[M\x40\x21\x23"