-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not move diff marks to next line if the user deletes a line #30
Comments
I'll test that ASAP. Thanks for reporting. BR |
Thank you Pavel. I appreciate that. BR |
Confirmed. I'll look into this shortly. BR |
Fixed in master branch. BR |
Hello Pavel, That's a progress. I really appreciate it. Could you please try the modified files? Delete the first not-equal line. Similar issues in other cases. Thank you very much. BR |
Hello Yaron, This is fixed, thanks. BR |
Hello Pavel, Thank you so much. I really appreciate it.
When I opened this issue I wasn't sure whether Compare or NPP moved the mark to the next line. Anyway, the current implementation has some major improvements but also some regressions. I haven't checked the relevant code. How about undoing the line-delete, remove its mark and redo the deletion? Also, our discussion in #29 might affect this as well. Best regards. |
Hello Yaron, I'm a bit confused now. What possible connection might exist between the user deleting some lines from the compared file and the compare process itself? This has nothing to do with re-compare. The line markings were simply left behind while the line is gone (deleted by the user) and the next line markings were moved up together with its corresponding line which resulted in several different markings for the moved lines.
The current implementation is functionally the same but more optimal. It first removes the markings and then moves to deleting the files. No need for undo/redo.
I tried that and I didn't see any problem. Files compare just fine both ways. Please clarify further the problem as I don't see one, thanks! BR |
Hello Pavel, Thank you for a delicious meal.
I had in mind the "Two Equal Files" concept. Implementing it, there shouldn't be any empty lines with no marks.
Great!
Please see the screenshots. Just compare. No deletions. Could some other recent modifications be the cause? Best regards. |
Hello Yaron,
Sure, it should have something to do with my modifications on the blank lines handling but the weird thing is that I cannot reproduce this issue on my side. BR |
Hello Pavel, Thank you very much. Yes, I'm using the latest master branch commit. BR |
@Yaron10 |
Hello xylographe, With the latest commit I get wrong results regardless of any deletions. prefsBackup in the top/left view. Just compare. Thank you. |
@pnedev After "Clear Compare" the empty line (line 61 in the top view) is still there, although NPP has not marked the file as modified in the tab bar. A subsequent "Reload" of Can you reproduce that, Pavel? |
But what do you see when you just compare the files and scroll to line 61? |
Hello guys, I'll leave that for another time, I need some rest. BR |
@xylographe , BR |
Hello Pavel, The Compare Plugin seems to require a team of developers. I'd rather continue discussing this issue next week. Have a pleasant and refreshing weekend. Yaron |
Nothing unusual as you can see in NPP-CP-prefs-001
Same steps as above lead to same result in CP f228177 |
I've downloaded a fresh portable (7z) NPP 6.9.1 and got the same wrong results. I hope Pavel is lying somewhere in the sun and won't be reading any of these messages until next week. :) Thank you. |
ComparePlugin-f228177 (built with VS 2015) |
Thank you. I appreciate that. It works properly with your build. BR |
Oops, I typed "(built with VS 2015)" but I meant "(built with VS 2013)" My idea: Upgrade to VS Community 2013 perhaps? |
Thanks again. BR |
Hello guys, @xylographe , @Yaron10 , BR |
Hello Pavel, Thank you. I appreciate it. I think the compiler issue is a question for Claudia. BR |
Hello Yaron, OK, that's good. Claudia may have some idea about that or think of something we miss. BR |
Hello @xylographe , The particular issue you reported is fixed with the latest commit, thanks. BR |
Hello Pavel, That's a major improvement. BR |
Thank you, Pavel. |
STR:
Open the files in Test.zip.
Activate compatibility.ini and Compare.
Delete line 3.
Result:
Line 3 has both "Deleted" and "Different" images.
** Even if line 4 was not "Different", the diff marks from line 3 shouldn't be moved but removed.
** I don't expect Compare Plugin to dynamically re-compare, but it would be good to fix this issue if possible.
The text was updated successfully, but these errors were encountered: