From 1027f6b67f925a2556aa23c33872f8635c7e087e Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 2 Nov 2015 16:07:57 -0500 Subject: [PATCH] Use accurate ranges where possible. --- prototype/doubt-difftool/Unified.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/doubt-difftool/Unified.swift b/prototype/doubt-difftool/Unified.swift index 759ecb585..2575fef97 100644 --- a/prototype/doubt-difftool/Unified.swift +++ b/prototype/doubt-difftool/Unified.swift @@ -4,7 +4,7 @@ func unified(patch: Patch, source: String) -> String { } private func range(patch: Patch) -> Range? { - return nil + return patch.state.after?.extract.range } func unified(diff: Diff, before: String, after: String) -> String {