mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
remove redundant $s
This commit is contained in:
parent
e886dc0f83
commit
68ec269cf5
@ -85,8 +85,8 @@ removeStyle :: Style -> InlineM ()
|
||||
removeStyle sMask = modify $ \s ->
|
||||
s { inlineAttr =
|
||||
let style' = case attrStyle (inlineAttr s) of
|
||||
Default -> error $ "Graphics.Vty.Inline: Cannot removeStyle if applyStyle never used."
|
||||
KeepCurrent -> error $ "Graphics.Vty.Inline: Cannot removeStyle if applyStyle never used."
|
||||
Default -> error "Graphics.Vty.Inline: Cannot removeStyle if applyStyle never used."
|
||||
KeepCurrent -> error "Graphics.Vty.Inline: Cannot removeStyle if applyStyle never used."
|
||||
SetTo st -> st .&. complement sMask
|
||||
in (inlineAttr s) { attrStyle = SetTo style' }
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ import Data.Word
|
||||
compile :: ClassifyMap -> String -> KClass
|
||||
compile table = cl' where
|
||||
-- take all prefixes and create a set of these
|
||||
prefixSet = S.fromList $ concatMap (init . inits . fst) $ table
|
||||
prefixSet = S.fromList $ concatMap (init . inits . fst) table
|
||||
maxValidInputLength = maximum (map (length . fst) table)
|
||||
eventForInput = M.fromList table
|
||||
cl' [] = Prefix
|
||||
|
@ -355,8 +355,7 @@ terminfoWriteSetAttr dc terminfoCaps urlsEnabled prevAttr reqAttr diffs =
|
||||
setColors
|
||||
-- implicitly resets the colors to the defaults
|
||||
SetState state -> writeCapExpr (fromJust $ setAttrStates
|
||||
$ displayAttrCaps
|
||||
$ terminfoCaps
|
||||
$ displayAttrCaps terminfoCaps
|
||||
)
|
||||
(sgrArgsForState state)
|
||||
`mappend` setItalics
|
||||
|
Loading…
Reference in New Issue
Block a user