Skip to content

Commit 9ea5343

Browse files
committed
[[ Diff ]] Add context param to DiffCompareFiles and fix wrong function name called
1 parent a77282f commit 9ea5343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/script-libraries/diff/diff.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ A string representing the changes between pFrom and pTo in unified diff format.
122122
123123
*/
124124

125-
function DiffCompareFiles pFrom, pTo
125+
function DiffCompareFiles pFrom, pTo, pContext
126126
// produce file header
127127
local tDiff
128128
put "--- " & pFrom & tab & udiff_file_timestamp(pFrom) & cr & \
129129
"+++ " & pTo & tab & udiff_file_timestamp(pTo) & cr into tDiff
130-
put udiff_strings(url ("file:" & pFrom), url ("file:" & pTo)) after tDiff
130+
put DiffCompare(url ("binfile:" & pFrom), url ("binfile:" & pTo), pContext) after tDiff
131131
return tDiff
132132
end DiffCompareFiles
133133

0 commit comments

Comments
 (0)