Skip to content

Commit 0a33c5a

Browse files
committed
fix: Use ~Line N, +Line N, -Line N for single-line diffs
1 parent 7dcc6bb commit 0a33c5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/diff/differ.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,12 +1251,12 @@ func scriptDiffSummary(old, new string) string {
12511251
}
12521252
if o != n {
12531253
if o == "" {
1254-
return fmt.Sprintf("+L%d", i+1)
1254+
return fmt.Sprintf("+Line %d", i+1)
12551255
}
12561256
if n == "" {
1257-
return fmt.Sprintf("-L%d", i+1)
1257+
return fmt.Sprintf("-Line %d", i+1)
12581258
}
1259-
return fmt.Sprintf("~L%d", i+1)
1259+
return fmt.Sprintf("~Line %d", i+1)
12601260
}
12611261
}
12621262
}

0 commit comments

Comments
 (0)