mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
enhance: supports word wrap in text diff view
This commit is contained in:
parent
d2ea90be23
commit
802b429cc8
10 changed files with 37 additions and 30 deletions
|
@ -273,10 +273,6 @@ namespace SourceGit.ViewModels
|
|||
Staged = staged;
|
||||
_isLoadingData = false;
|
||||
|
||||
var scrollOffset = Vector.Zero;
|
||||
if (_detailContext is DiffContext old)
|
||||
scrollOffset = old.SyncScrollOffset;
|
||||
|
||||
if (selectedUnstaged.Count > 0)
|
||||
SelectedUnstaged = selectedUnstaged;
|
||||
else if (selectedStaged.Count > 0)
|
||||
|
@ -284,9 +280,6 @@ namespace SourceGit.ViewModels
|
|||
else
|
||||
SetDetail(null);
|
||||
|
||||
if (_detailContext is DiffContext cur)
|
||||
cur.SyncScrollOffset = scrollOffset;
|
||||
|
||||
// Try to load merge message from MERGE_MSG
|
||||
if (string.IsNullOrEmpty(_commitMessage))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue