🔧 Fix switching modes
This commit is contained in:
parent
5cf95db31b
commit
dd2e5a49af
@ -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):
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user