vty 5.11.2 → 5.11.3
raw patch · 3 files changed
+6/−3 lines, 3 files
Files
- CHANGELOG +3/−0
- src/Graphics/Vty/Input/Mouse.hs +2/−2
- vty.cabal +1/−1
CHANGELOG view
@@ -1,3 +1,6 @@+5.11.3+ - Fix mouse event offsets in mouse-up events+ 5.11.2 - Mouse events were modified so that the upper-left corner of the window is (0,0) rather than (1,1).
src/Graphics/Vty/Input/Mouse.hs view
@@ -130,7 +130,7 @@ True -> do button <- getSGRButton status return $ EvMouseDown (xCoord-1) (yCoord-1) button modifiers- False -> return $ EvMouseUp xCoord yCoord Nothing+ False -> return $ EvMouseUp (xCoord-1) (yCoord-1) Nothing -- Attempt to classify a control sequence as an SGR mouse event. To -- get here we should have already read "\ESC[<" so that will not be@@ -148,5 +148,5 @@ button <- getSGRButton mods case final of 'M' -> return $ EvMouseDown (xCoord-1) (yCoord-1) button modifiers- 'm' -> return $ EvMouseUp xCoord yCoord (Just button)+ 'm' -> return $ EvMouseUp (xCoord-1) (yCoord-1) (Just button) _ -> failParse
vty.cabal view
@@ -1,5 +1,5 @@ name: vty-version: 5.11.2+version: 5.11.3 license: BSD3 license-file: LICENSE author: AUTHORS