diff --git a/src/FsAutoComplete/CodeFixes/AdjustConstant.fs b/src/FsAutoComplete/CodeFixes/AdjustConstant.fs index 6fa058e3c..981f390c2 100644 --- a/src/FsAutoComplete/CodeFixes/AdjustConstant.fs +++ b/src/FsAutoComplete/CodeFixes/AdjustConstant.fs @@ -33,7 +33,7 @@ let private tryFindConstant ast pos = let rec findConst range constant = match constant with | SynConst.Measure(constant = c; constantRange = constantRange) when rangeContainsPos constantRange pos -> - findConst constantRange constant + findConst constantRange c | _ -> (range, constant) SyntaxTraversal.Traverse(