Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

Commit 9bd6950

Browse files
fix printf specifier highlight column offset bug
1 parent 6714cd7 commit 9bd6950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let getAll (input: ParseAndCheckResults) (onError: string -> unit): PrintfSpecif
2222
let specRangesAndArities =
2323
specRangesAndArities
2424
|> Array.map (fun (x, ar) ->
25-
(Range.mkRange x.FileName x.Start (Range.mkPos x.EndLine (x.EndColumn + 1))), ar)
25+
(Range.mkRange x.FileName x.Start (Range.mkPos x.EndLine (x.EndColumn))), ar)
2626

2727
let printfFunctions = Printf.getAll input.ParseTree
2828

0 commit comments

Comments
 (0)