しまうところだった

almost did

→ 仕舞う
phrase Rare #45,455
almost did Describes an action that nearly happened but was avoided. Often used with 危うく (あやうく, “almost”).
JA: 危うく財布を忘れてしまうところだった。
EN: I almost forgot my wallet.

ドアが開いた時は、危うくプラットホームに倒れてしまうところだった。

When the door opened, I almost fell onto the platform.

彼女は危うく「知らない」と言ってしまうところだった。

She almost said, “I don’t know.”