mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
Merge pull request #216 from hapytex/hlint/redundant-dollar
remove redundant $s
This commit is contained in:
commit
b21145850c
@ -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
|
||||
|
@ -354,8 +354,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