on develop help sign in
Fix Data.Text.Zipper.top; Export MouseDown, MouseUp
1dfbb64Ali Abrar
src/Data/Text/Zipper.hs+1−1
@@ -93,7 +93,7 @@ end (TextZipper lb b a la) = TextZipper lb (b <> a) "" la
93top :: TextZipper -> TextZipper
93top :: TextZipper -> TextZipper
94top (TextZipper lb b a la) = case reverse lb of
94top (TextZipper lb b a la) = case reverse lb of
95 [] -> TextZipper [] "" (b <> a) la
95 [] -> TextZipper [] "" (b <> a) la
96− (start:rest) -> TextZipper [] "" start (rest <> la)
96+ (start:rest) -> TextZipper [] "" start (rest <> [b <> a] <> la)
97
97
98-- | Insert a character at the current cursor position
98-- | Insert a character at the current cursor position
99insertChar :: Char -> TextZipper -> TextZipper
99insertChar :: Char -> TextZipper -> TextZipper
src/Reflex/Vty/Widget.hs+2
@@ -29,6 +29,8 @@ module Reflex.Vty.Widget
29 , regionBlankImage
29 , regionBlankImage
30 , Drag(..)
30 , Drag(..)
31 , drag
31 , drag
32+ , MouseDown(..)
33+ , MouseUp(..)
32 , mouseDown
34 , mouseDown
33 , pane
35 , pane
34 , modifyImages
36 , modifyImages