Fix bugs in diff widget
3 bugs fixed:
1. Line missing bug in diff widget
2. Assertion failed when opening added or removed files
3. Line number mistake bug
Edited by Bohai Li
3 bugs fixed:
1. Line missing bug in diff widget
2. Assertion failed when opening added or removed files
3. Line number mistake bug