You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I happened to be using icdiff and noticed it matched a whole line, not just the different comments. There's something about the text (Japanese in this instance) that's causing an intraline change to be missed. Here's a simple test program:
Ah. There's an internal limit for how much the lines can differ for the intra-line markers to be displayed. Your example appears to score just above the limit. I think adjusting the limit would be tricky -- it would probably break existing code that somehow relies on the current limit. I don't see a compelling reason to bother, so I'm closing this issue. Thanks for paying attention!
PS. The cutoff is hardcoded on line 925 to be 0.74999. There's a long comment explaining its purpose before that.
Activity
gvanrossum commentedon Nov 2, 2026
Ah. There's an internal limit for how much the lines can differ for the intra-line markers to be displayed. Your example appears to score just above the limit. I think adjusting the limit would be tricky -- it would probably break existing code that somehow relies on the current limit. I don't see a compelling reason to bother, so I'm closing this issue. Thanks for paying attention!
PS. The cutoff is hardcoded on line 925 to be 0.74999. There's a long comment explaining its purpose before that.