Skip to content

Commit 283f84f

Browse files
committed
fix: checking if current worktree file changed
Signed-off-by: leo <longshuang@msn.cn>
1 parent a273cad commit 283f84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/WorkingCopy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ private bool IsChanged(List<Models.Change> old, List<Models.Change> cur)
807807
{
808808
var o = old[idx];
809809
var c = cur[idx];
810-
if (o.Path.Equals(c.Path, StringComparison.Ordinal) || o.Index != c.Index || o.WorkTree != c.WorkTree)
810+
if (!o.Path.Equals(c.Path, StringComparison.Ordinal) || o.Index != c.Index || o.WorkTree != c.WorkTree)
811811
return true;
812812
}
813813

0 commit comments

Comments
 (0)