diff options
-rw-r--r-- | src/edit.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/edit.rs b/src/edit.rs index 19bb486..f21cf73 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -145,12 +145,8 @@ slint::slint! { input (k) => { t.text = Aux.handle-command-buffer (k, t.text, cursor); - if (t.text == "") { - /* User backspaced her way to the left. */ - return true; - } - - return false; + /* Buffer is empty if the user backspaced her way to the left. */ + return t.text == ""; } t := Text { |