mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-21 08:44:59 +08:00
Remove bad assertion
builtin read pushes a reader instance after enabling terminal protocols, so this doesn't hold. Fixes #10438
This commit is contained in:
parent
1dd901e521
commit
50d93cced1
|
@ -11,7 +11,6 @@ use crate::key::{
|
|||
self, alt, canonicalize_control_char, canonicalize_keyed_control_char, function_key, shift,
|
||||
Key, Modifiers,
|
||||
};
|
||||
use crate::proc::is_interactive_session;
|
||||
use crate::reader::{reader_current_data, reader_test_and_clear_interrupted};
|
||||
use crate::threads::{iothread_port, iothread_service_main, MainThread};
|
||||
use crate::universal_notifier::default_notifier;
|
||||
|
@ -480,9 +479,6 @@ impl Drop for TerminalProtocols {
|
|||
}
|
||||
|
||||
fn terminal_protocols_enable_impl() {
|
||||
// Interactive or inside builtin read.
|
||||
assert!(is_interactive_session() || reader_current_data().is_some());
|
||||
|
||||
let sequences = concat!(
|
||||
"\x1b[?2004h", // Bracketed paste
|
||||
"\x1b[>4;1m", // XTerm's modifyOtherKeys
|
||||
|
@ -501,8 +497,6 @@ fn terminal_protocols_enable_impl() {
|
|||
}
|
||||
|
||||
fn terminal_protocols_disable_impl() {
|
||||
// Interactive or inside builtin read.
|
||||
assert!(is_interactive_session() || reader_current_data().is_some());
|
||||
let sequences = concat!(
|
||||
"\x1b[?2004l",
|
||||
"\x1b[>4;0m",
|
||||
|
|
Loading…
Reference in New Issue
Block a user