diff options
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/luaeditor/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/luaeditor/mod.rs b/src/widgets/luaeditor/mod.rs index 4fb8a3b..a24c6e7 100644 --- a/src/widgets/luaeditor/mod.rs +++ b/src/widgets/luaeditor/mod.rs @@ -34,9 +34,9 @@ impl LuaEditor { } pub fn handle_key_event(&mut self, event: KeyEvent) { - let r = EditorKeyMap::handle(event); + let populate = EditorKeyMap::handle(event); - if r.unwrap_or(true) { + if populate { match event.code { KeyCode::Char(c) => GlobalState::instance_mut().editor.buffer.insert(c), KeyCode::Backspace => { |