File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,15 @@ public void PrevChange()
78
78
if ( _content is Models . TextDiff textDiff )
79
79
{
80
80
if ( textDiff . CurrentChangeBlockIdx > 0 )
81
+ {
81
82
textDiff . CurrentChangeBlockIdx -- ;
82
- else if ( textDiff . CurrentChangeBlockIdx == - 1 && textDiff . ChangeBlocks . Count > 0 )
83
- textDiff . CurrentChangeBlockIdx = 0 ; // Jump to first change block
83
+ }
84
+ else if ( textDiff . ChangeBlocks . Count > 0 )
85
+ {
86
+ // Force property value change and (re-)jump to first change block
87
+ textDiff . CurrentChangeBlockIdx = - 1 ;
88
+ textDiff . CurrentChangeBlockIdx = 0 ;
89
+ }
84
90
}
85
91
}
86
92
@@ -89,7 +95,15 @@ public void NextChange()
89
95
if ( _content is Models . TextDiff textDiff )
90
96
{
91
97
if ( textDiff . CurrentChangeBlockIdx < textDiff . ChangeBlocks . Count - 1 )
98
+ {
92
99
textDiff . CurrentChangeBlockIdx ++ ;
100
+ }
101
+ else if ( textDiff . ChangeBlocks . Count > 0 )
102
+ {
103
+ // Force property value change and (re-)jump to last change block
104
+ textDiff . CurrentChangeBlockIdx = - 1 ;
105
+ textDiff . CurrentChangeBlockIdx = textDiff . ChangeBlocks . Count - 1 ;
106
+ }
93
107
}
94
108
}
95
109
You can’t perform that action at this time.
0 commit comments