From 9b9b7dadb0275246180f315d7fd772429482c194 Mon Sep 17 00:00:00 2001 From: Gauthier Segay Date: Tue, 14 Feb 2017 12:07:50 +0100 Subject: [PATCH] fix printf specifier highlight column offset bug --- src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs b/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs index 86b6a7f0..6031abd2 100644 --- a/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs +++ b/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs @@ -22,7 +22,7 @@ let getAll (input: ParseAndCheckResults) (onError: string -> unit): PrintfSpecif let specRangesAndArities = specRangesAndArities |> Array.map (fun (x, ar) -> - (Range.mkRange x.FileName x.Start (Range.mkPos x.EndLine (x.EndColumn + 1))), ar) + (Range.mkRange x.FileName x.Start (Range.mkPos x.EndLine (x.EndColumn))), ar) let printfFunctions = Printf.getAll input.ParseTree