-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cannot show diff in the current document #33
Comments
OK I just found what the problem is, it happens when the diff somehow has empty lines, probably because of the last part about properties. Youi just need to replace occurences of "if line[0]" with "if line and line[0]" |
Thank you for the solution. I will add it to the code ASAP. |
I could not reproduce this issue, but I made fix for it as you proposed. |
Thanks, I'll let you know when I get back to office. If it does not fix, I'll send you a patch. |
Tested from office, I still have a backtrace and it fails.
Sorry for not bothering to fork and do a pull request, I'm at work and lacking time + git tools... |
Thanks. I should have been using |
Please, feel free to reopen this issue, if it still occurs. |
I happen to work on a svn working copy with lots of new files added (A) and most of them can't show the diff in ST2, console view shows me :
Traceback (most recent call last):
File ".\Modific.py", line 391, in diff_done
File ".\Modific.py", line 314, in get_lines_to_hl
File ".\Modific.py", line 293, in get_chunks
IndexError: string index out of range
I also seems that it may been due to some property changes in the diff, the few files that work and show the diff have no property change, whereas the ones I see failing have:
Property changes on: src/xxxxx.cpp
The text was updated successfully, but these errors were encountered: