fix: refresh_hover when entering/exiting overlay modes
This commit is contained in:
parent
7115d3eddc
commit
dec2399b19
1 changed files with 2 additions and 0 deletions
|
@ -557,6 +557,7 @@ fn enter_overlay_mode(self: *Self, mode: type) command.Result {
|
|||
if (self.input_mode_outer) |_| try cmds.exit_overlay_mode(self, .{});
|
||||
self.input_mode_outer = self.input_mode;
|
||||
self.input_mode = try mode.create(self.allocator);
|
||||
self.refresh_hover();
|
||||
}
|
||||
|
||||
const cmds = struct {
|
||||
|
@ -701,6 +702,7 @@ const cmds = struct {
|
|||
self.input_mode_outer = null;
|
||||
}
|
||||
if (self.input_mode) |*mode| mode.deinit();
|
||||
self.refresh_hover();
|
||||
}
|
||||
pub const exit_overlay_mode_meta = .{ .interactive = false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue