JetpackDuba / Gitnuro

A FOSS Git multiplatform client for newbies and pros
https://gitnuro.com/
GNU General Public License v3.0
864 stars 44 forks source link

Using "stage hunk" often causes graphical issues in the diff panel #213

Open narFnarF opened 3 weeks ago

narFnarF commented 3 weeks ago

Describe the bug Using the "stage hunk" feature often causes the center panel (normally showing the diff) to have graphical issues. This makes the diff impossible to see for that file until unstaging the file.

To Reproduce

  1. In your repo, edit a long file so that Gitnuro displays 2 hunks
  2. Click on 'Stage hunk'
  3. Look at the center (diff) panel. It displays a large square with "01" written on it, as well as the words "Old" and "New".

Expected behavior The center panel displays the diff

Screenshots image

Desktop (please complete the following information):

JetpackDuba commented 3 weeks ago

Hey!

That's odd, what encoding are you using in your file? I've done some fixes regarding that recently, it could be the same issue.

narFnarF commented 2 days ago

I'm always using utf-8 for encoding.

Note that this is a new issue, that appeared, I would say, in the past 1-3 months. It used to work properly before.