From dd2e5a49afbc9e8611905a1103937795c64401cc Mon Sep 17 00:00:00 2001 From: spy Date: Sat, 19 Mar 2022 15:57:38 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20switching=20modes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/modes.py | 4 ++-- mode/insert.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modes.py b/core/modes.py index 9a3abed..23a9305 100644 --- a/core/modes.py +++ b/core/modes.py @@ -12,11 +12,11 @@ def activate(instance, mode): elif mode == "insert": # Activate insert mode - insert.activate(instance) + insert.activate() elif mode == "normal": # Activate normal mode - normal.activate(instance) + normal.activate() def handle_key(instance, key): diff --git a/mode/insert.py b/mode/insert.py index 77ef3de..c84abc4 100644 --- a/mode/insert.py +++ b/mode/insert.py @@ -8,6 +8,6 @@ def execute(instance, key): modes.activate(instance, "normal") -def activate(instance): +def activate(): # Switch the cursor to a line cursors.cursor_mode("line")