Skip to content

Commit

Permalink
Fix hlint hints
Browse files Browse the repository at this point in the history
  • Loading branch information
fmthoma committed Jan 9, 2021
1 parent 4cd7a98 commit 294a30b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Vgrep/Widget/Pager.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,10 @@ renderPager = do
let (renderedLineNumbers, renderedTextLines)
= over both fold
. unzip
. map renderLine
$ zip [startPosition+1..] visibleLines
$ zipWith renderLine [startPosition+1..] visibleLines
where
renderLine :: (Int, Text) -> (Image, Image)
renderLine (num, txt) = case Map.lookup num highlightedLines of
renderLine :: Int -> Text -> (Image, Image)
renderLine num txt = case Map.lookup num highlightedLines of
Just formatted -> ( renderLineNumber lineNumberColorHl num
, renderFormatted textColorHl formatted )
Nothing -> ( renderLineNumber lineNumberColor num
Expand Down

0 comments on commit 294a30b

Please sign in to comment.