Christian Brabandt wrote: > I am currently creating some screen tests for diff mode and thought the > term_dump() function would come handy. So I created a reference term > dump which I placed in the dumps/ directory and let the test run against > it. The strange thing is, the test fails, also manually comparing the > files using term_dumpdiff() does NOT show a difference. > > I attach both diffs here. Perhaps you can have a look. > > diff -Nu against both files shows this: > > diff --git a/Test_diff_05.dump.failed b/dumps/Test_diff_05.dump > index 788d83be8..7a5d5403e 100644 > --- a/Test_diff_05.dump.failed > +++ b/dumps/Test_diff_05.dump > @@ -4,7 +4,7 @@ > | +0#0000e05#a8a8a8255@1|4+0#0000000#ffffff0| @33||+1&&| > +0#0000e05#a8a8a8255@1|4+0#0000000#ffffff0| @33 > | +0#0000e05#a8a8a8255@1|-+0#4040ff13#afffff255@34||+1#0000000#ffffff0| > +0#0000e05#a8a8a8255@1|4+0#0000000#5fd7ff255| @33 > | +0#0000e05#a8a8a8255@1|5+0#0000000#ffffff0| @33||+1&&| > +0#0000e05#a8a8a8255@1|5+0#0000000#ffffff0| @33 > -| +0#0000e05#a8a8a8255@1|6+0#0000000#ffffff0| | @32||+1&&| > +0#0000e05#a8a8a8255@1|6+0#0000000#ffffff0| @33 > +| +0#0000e05#a8a8a8255@1|6+0#0000000#ffffff0| @33||+1&&| > +0#0000e05#a8a8a8255@1|6+0#0000000#ffffff0| @33 > | +0#0000e05#a8a8a8255@1|7+0#0000000#ffffff0| @33||+1&&| > +0#0000e05#a8a8a8255@1|7+0#0000000#ffffff0| @33 > | +0#0000e05#a8a8a8255@1|8+0#0000000#ffffff0| @33||+1&&| > +0#0000e05#a8a8a8255@1|8+0#0000000#ffffff0| @33 > | +0#0000e05#a8a8a8255@1|9+0#0000000#ffffff0| @33||+1&&| > +0#0000e05#a8a8a8255@1|9+0#0000000#ffffff0| @33 > > That looks like a bug in the function that created the dump file, > because if I guess the format correctly, the dump was written slightly > different > | | @32 versus: > | @33 > > which will both result in 34 spaces, but the dump being actually > different.
Weird. I can only explain it if the dump that has @32 had a NUL character in there. Both NUL and space end up as a space in the dump. Having a NUL halfway a line is weird. Normally it only happens at the end of the line. Can you reproduce this problem? Let me change the check for repeat to treat NUL and space the same, that should fix the problem. Don't know how to test this though. -- Light travels faster than sound. This is why some people appear bright until you hear them speak /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
