After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 157873 - Draw hidden differences unobtrusively.
Draw hidden differences unobtrusively.
Status: VERIFIED FIXED
Product: meld
Classification: Other
Component: filediff
0.9.x
Other Linux
: Low enhancement
: ---
Assigned To: Stephen Kennedy
Stephen Kennedy
Depends on:
Blocks:
 
 
Reported: 2004-11-10 17:46 UTC by Alexey Rusakov
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug fix (850 bytes, patch)
2004-11-10 18:15 UTC, Stephen Kennedy
none Details | Review
Screenshot (135.97 KB, image/png)
2004-11-10 18:42 UTC, Alexey Rusakov
  Details
When 'Ignore blank lines' is set, removes blank lines from diffmaps (1.98 KB, patch)
2004-11-12 18:27 UTC, Alexey Rusakov
none Details | Review

Description Alexey Rusakov 2004-11-10 17:46:19 UTC
1. Prepare two files that differ by one empty line.
2. Open a file diff with them
3. The diff is displayed on the diff bar, but is not between the files.
The screenshot will be available soon.
Comment 1 Stephen Kennedy 2004-11-10 18:15:35 UTC
Created attachment 33647 [details] [review]
Bug fix
Comment 2 Stephen Kennedy 2004-11-10 18:16:00 UTC
Ah, file diff / ignore blank lines was not hooked up to the gui.
Also its enabled by default. Try the attached patch or update to
branch-0_9 if you're using cvs.

Comment 3 Alexey Rusakov 2004-11-10 18:40:07 UTC
You are really quick %-) Yes, I'm on CVS. Anyway, for the history - the screenshot.
Comment 4 Alexey Rusakov 2004-11-10 18:42:03 UTC
Created attachment 33648 [details]
Screenshot
Comment 5 Alexey Rusakov 2004-11-12 18:26:32 UTC
Well, the current situation (with your patch applied) is the following. When
'Ignore blank lines' is off, everything goes ok. However, when 'Ignore blank
lines' is on, diffmaps still show there's a difference and mouse wheel scrolling
still stumbles upon them. Visually, it is the very same thing as on the screenshot.
I tried to dig into the code and will post a rough patch in a couple of minutes.
The patch, however, does not fix using the wheel to pass to (not displayed in
any way now) diff, which is very embarassing. And it doesn't take into account
the case when there's the only diff and it consists of one blank line.
What I thought about is that maybe it is reasonable to alter the diffutil.Differ
so that it is able to ignore blank lines in diffs.
Comment 6 Alexey Rusakov 2004-11-12 18:27:43 UTC
Created attachment 33714 [details] [review]
When 'Ignore blank lines' is set, removes blank lines from diffmaps
Comment 7 Stephen Kennedy 2004-11-12 20:57:02 UTC
Thanks for the patch Alexey. The idea was originally to show "hidden" diffs
unobtrusively. For instance in dirdiff, if two files are different but compare
identically because of filters, they are shown in italics.

I'd like something similar for filediff. Perhaps draw the diffmaps and linkmaps
with a faint line. Probably next/prev diff should skip these.
Comment 8 Alexey Rusakov 2004-11-12 21:12:37 UTC
I've got the idea. I'll think over it and maybe propose another patch :)
Comment 9 Stephen Kennedy 2006-06-13 21:50:57 UTC
Right, next&prev skip hidden changes.
The outline is not drawn in the diffmap for hidden changes (but is filled)
I think that should cover it.
Comment 10 Stephen Kennedy 2006-11-19 11:06:19 UTC
Batch close of old bugs.