We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da7533 commit b6f3cdaCopy full SHA for b6f3cda
packages/mini-editor/src/mini-editor-tween.tsx
@@ -275,8 +275,11 @@ function endingPosition(
275
} = getStepFiles(prev, next, false)
276
277
// getStepFiles return the intermediate files, we need to patch the ending state (2to1south)
278
- if (!inputSouthPanel && nextSouthFile) {
279
- nextNorthFile = nextSouthFile
+ const isTwoToOneSouth =
+ !inputSouthPanel &&
280
+ inputNorthPanel.active === prev?.southPanel?.active
281
+ if (isTwoToOneSouth) {
282
+ nextNorthFile = nextSouthFile!
283
}
284
285
return {
0 commit comments