mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00: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:
parent
8c364dc949
commit
390b40e02b
1 changed files with 2 additions and 1 deletions
|
@ -439,7 +439,6 @@ pub(crate) fn terminal_protocols_enable_ifn() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*term_protocols = Some(TerminalProtocols::new());
|
*term_protocols = Some(TerminalProtocols::new());
|
||||||
reader_current_data().map(|data| data.save_screen_state());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn terminal_protocols_disable_ifn() {
|
pub(crate) fn terminal_protocols_disable_ifn() {
|
||||||
|
@ -473,6 +472,7 @@ impl TerminalProtocols {
|
||||||
if IS_TMUX.load() {
|
if IS_TMUX.load() {
|
||||||
let _ = write_to_fd("\x1b[?1004h".as_bytes(), STDOUT_FILENO);
|
let _ = write_to_fd("\x1b[?1004h".as_bytes(), STDOUT_FILENO);
|
||||||
}
|
}
|
||||||
|
reader_current_data().map(|data| data.save_screen_state());
|
||||||
Self {}
|
Self {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -496,6 +496,7 @@ impl Drop for TerminalProtocols {
|
||||||
if IS_TMUX.load() {
|
if IS_TMUX.load() {
|
||||||
let _ = write_to_fd("\x1b[?1004l".as_bytes(), STDOUT_FILENO);
|
let _ = write_to_fd("\x1b[?1004l".as_bytes(), STDOUT_FILENO);
|
||||||
}
|
}
|
||||||
|
reader_current_data().map(|data| data.save_screen_state());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue