From fe381e1146223a15b072988d6dedf6e1a81affeb Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 20 Aug 2022 16:25:46 +0200 Subject: [PATCH] Make unrendered editors' behaviour a bit more sane In practice, this doesn't really matter anyways. --- src/ui/widgets/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/widgets/editor.rs b/src/ui/widgets/editor.rs index af8ac93..e8e8ec4 100644 --- a/src/ui/widgets/editor.rs +++ b/src/ui/widgets/editor.rs @@ -49,7 +49,7 @@ impl InnerEditorState { Self { idx: text.len(), col: 0, - last_width: 0, + last_width: u16::MAX, text, } }