packages feed

cgrep 9.2.2 → 9.2.3

raw patch · 2 files changed

+2/−2 lines, 2 files

Files

cgrep.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.2 name: cgrep description: Cgrep: a context-aware grep for source codes-version: 9.2.2+version: 9.2.3 synopsis: Command line tool homepage: http://awgn.github.io/cgrep/ license: GPL-2.0-or-later
src/CGrep/Match.hs view
@@ -184,7 +184,7 @@ buildLineCol Options{no_numbers = True} _ = mempty buildLineCol Options{no_numbers = False, no_column = True} (Match _ n _ _) = TLB.decimal n buildLineCol Options{no_numbers = False, no_column = False} (Match _ n _ []) = TLB.decimal n-buildLineCol Options{no_numbers = False, no_column = False} (Match _ n l (t : _)) = TLB.decimal n <> TLB.singleton ':' <> TLB.decimal (bytesToCharOffset l (cOffset t) + 1)+buildLineCol Options{no_numbers = False, no_column = False} (Match _ n l (t : _)) = TLB.decimal n <> TLB.singleton ':' <> TLB.decimal (bytesToCharOffset l (cOffset t - textOffsetWord8 l) + 1) {-# INLINE buildLineCol #-}  bytesToCharOffset :: T.Text -> Int -> Int