diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index b5487ef87..8c6cdf6e2 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -106,10 +106,11 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { } let opened_file = match File::open(file) { Err(why) => { + terminal::disable_raw_mode().unwrap(); return Err(USimpleError::new( 1, format!("cannot open {}: {}", file.quote(), why.kind()), - )) + )); } Ok(opened_file) => opened_file, };