From 042791ee8518b5b3f196ca198e184d5913341619 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Wed, 25 May 2022 16:15:07 +0200 Subject: Use signalfd and poll to handle sigwinch --- handlers.ha | 2 -- 1 file changed, 2 deletions(-) (limited to 'handlers.ha') diff --git a/handlers.ha b/handlers.ha index 41f895f..68d7556 100644 --- a/handlers.ha +++ b/handlers.ha @@ -177,13 +177,11 @@ fn runehandler(l: *widget::widget, r: rune) bool = { case '\n' => // For some reason enter doesn't send r == '\n' fmt::fprintln(os::stderr, "This is not detected")!; - yield; case => let us = utf8::encoderune(r); if (len(us) > 0 && us[0] == 13u8) { fmt::fprintln(os::stderr, "newline")!; }; - yield; }; libui::clear(l.widget.ui); match (list::print(l)) { -- cgit v1.2.3