From ebdbf711a74b62e1b38119f0426c51bb7a44e40c Mon Sep 17 00:00:00 2001 From: "R.E. Wolff" Date: Tue, 21 Nov 2017 15:50:41 +0100 Subject: [PATCH] fixed split like for macos --- ui/split.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/split.c b/ui/split.c index 83fc946..8743351 100644 --- a/ui/split.c +++ b/ui/split.c @@ -166,7 +166,8 @@ int split_keyaction( tv.tv_usec = 0; if (select(1, &readfds, NULL, NULL, &tv) > 0) { - read(0, &c, 1); + if (read(0, &c, 1) < 0) + return ActionQuit; } else return 0; #endif -- 2.47.2