fix: don't get stuck in an overlay mode if it is triggered from the command line
This commit is contained in:
parent
641d92a5cc
commit
da694d7ac2
1 changed files with 1 additions and 1 deletions
|
@ -868,7 +868,7 @@ const cmds = struct {
|
|||
|
||||
pub fn exit_overlay_mode(self: *Self, _: Ctx) Result {
|
||||
self.rdr.cursor_disable();
|
||||
if (self.input_mode_outer == null) return;
|
||||
if (self.input_mode_outer == null) return enter_mode_default(self, .{});
|
||||
if (self.input_mode) |*mode| mode.deinit();
|
||||
self.input_mode = self.input_mode_outer;
|
||||
self.input_mode_outer = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue