soramimi / Guitar

Git GUI Client
https://soramimi.github.io/Guitar/
GNU General Public License v2.0
1.57k stars 124 forks source link

Commit diff contents are getting cut off, if each line is more than 90 characters long #107

Open tommai78101 opened 3 years ago

tommai78101 commented 3 years ago

image

There should be more characters of code after sortDirection:

sortDirection="${pageableListForm.sortMap['varName'].sortDirection}"

However, in the latest Pre-Release build of Guitar, it's prematurely cutting off all the lines, modified and unmodified.

OS: Ubuntu 20.04.02 LTS Guitar version: Guitar v1.2.999 ( 79a8603 ) Qt: 5.14.2 GCC: 9.3.0

Using Guitar-79a8603-x86_64.AppImage

tommai78101 commented 3 years ago

Update.

image

It seems that it's a UI view issue, not an issue with parsing the text of the git diff contents. You can see that, on the left side, the lowercase letter, t, is cut off prematurely. On the right side, you can only see a small part of the horizontal stroke of the lowercase letter, t.

The code is referencing Spring Security in Java, checking if a request matcher has authorities listed in the arguments.