Gate the TUI suspend restore helper on Unix (#34578)

Compile `tui::restore` only on Unix, matching its use by the Unix job-control
suspension path.

GitOrigin-RevId: d0ce03def8905e94376ec7f5acf8d083d5dde05b
This commit is contained in:
pakrym-oai
2026-07-21 16:57:43 +00:00
committed by copyberry
parent 6ac68be6fe
commit af71774d26
+1
View File
@@ -294,6 +294,7 @@ fn restore_common(
/// Restore the terminal to its original state.
/// Inverse of `set_modes`.
#[cfg(unix)]
pub fn restore() -> Result<()> {
restore_common(RawModeRestore::Disable, KeyboardRestore::PopStack)
}