mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-19 01:31:15 -03:00
Fix regression not refreshing TTY timestamps after external command from binding
Commit8a7c3ce(Don't abandon line after writing control sequences, 2024-04-06) was broken by29f2da8(Toggle terminal protocols lazily, 2024-05-16), fix that. Fixes #10529
This commit is contained in:
@@ -439,7 +439,6 @@ pub(crate) fn terminal_protocols_enable_ifn() {
|
||||
return;
|
||||
}
|
||||
*term_protocols = Some(TerminalProtocols::new());
|
||||
reader_current_data().map(|data| data.save_screen_state());
|
||||
}
|
||||
|
||||
pub(crate) fn terminal_protocols_disable_ifn() {
|
||||
@@ -473,6 +472,7 @@ fn new() -> Self {
|
||||
if IS_TMUX.load() {
|
||||
let _ = write_to_fd("\x1b[?1004h".as_bytes(), STDOUT_FILENO);
|
||||
}
|
||||
reader_current_data().map(|data| data.save_screen_state());
|
||||
Self {}
|
||||
}
|
||||
}
|
||||
@@ -496,6 +496,7 @@ fn drop(&mut self) {
|
||||
if IS_TMUX.load() {
|
||||
let _ = write_to_fd("\x1b[?1004l".as_bytes(), STDOUT_FILENO);
|
||||
}
|
||||
reader_current_data().map(|data| data.save_screen_state());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user