Skip to content

Commit 4e64dd1

Browse files
committed
fix: reorder the list after unpinning to maintain the right position
1 parent ec160d1 commit 4e64dd1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/view/Pane.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ define(function (require, exports, module) {
554554
return false;
555555
}
556556

557-
// we just remove the file path from the pinned paths set
558-
// here we don't need to reorder the view list, the file can stay in its current position
557+
// remove the file path from the pinned paths set and reorder so it moves after pinned files
559558
this._pinnedPaths.delete(path);
559+
this._reorderViewListForPinning();
560560
return true;
561561
};
562562

0 commit comments

Comments
 (0)