We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25fe300 commit f827f10Copy full SHA for f827f10
System/Console/Haskeline/Backend/Win32.hsc
@@ -291,7 +291,9 @@ crlf :: String
291
crlf = "\r\n"
292
293
instance (MonadException m, MonadReader Layout m) => Term (Draw m) where
294
- drawLineDiff = drawLineDiffWin
+ drawLineDiff (xs1,ys1) (xs2,ys2) = let
295
+ fixEsc = filter ((/= '\ESC') . baseChar)
296
+ in drawLineDiffWin (fixEsc xs1, fixEsc ys1) (fixEsc xs2, fixEsc ys2)
297
-- TODO now that we capture resize events.
298
-- first, looks like the cursor stays on the same line but jumps
299
-- to the beginning if cut off.
0 commit comments