From 262c70be573d4511b89305e8bea2306b028bc924 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sun, 21 May 2017 18:25:08 +0200 Subject: Fix #573. Ensure we don't write 0 bytes to pty Any action that results in 0 bytes, such as pasting 0 bytes from the clipboard hangs the terminal (`pbcopy > { let bytes = bytes.into(); + // terminal hangs if we send 0 bytes through. + if bytes.len() == 0 { + return + } match self.0.send(Msg::Input(bytes)) { Ok(_) => (), Err(_) => panic!("expected send event loop msg"), -- cgit