diff options
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -90,7 +90,7 @@ uiThread modeRef lock = do _ -> return () - when (show (mode st) /= show (mode st')) $ do + when (mode st /= mode st') $ do putStrLn $ "change mode: " ++ (show $ mode st') renderInputLine (mode st') (buffer st') @@ -411,6 +411,7 @@ data Mode = InsertMode | NormalMode | VerbatimMode + deriving (Eq) instance Show Mode where show NormalMode = "normal" |