refactor: remove cancel idle action again
This commit is contained in:
parent
2ca613c5a6
commit
dc077350cd
2 changed files with 0 additions and 5 deletions
|
|
@ -79,7 +79,6 @@ const default_actions = [_]IdleAction{};
|
||||||
pub const IdleAction = enum {
|
pub const IdleAction = enum {
|
||||||
hover,
|
hover,
|
||||||
highlight_references,
|
highlight_references,
|
||||||
cancel,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const DigitStyle = enum {
|
pub const DigitStyle = enum {
|
||||||
|
|
|
||||||
|
|
@ -6928,10 +6928,6 @@ pub const EditorWidget = struct {
|
||||||
try self.editor.hover_at_abs(@intCast(self.hover_y), @intCast(self.hover_x));
|
try self.editor.hover_at_abs(@intCast(self.hover_y), @intCast(self.hover_x));
|
||||||
} else if (try m.match(.{"input_idle"})) {
|
} else if (try m.match(.{"input_idle"})) {
|
||||||
for (tui.config().idle_actions) |action| switch (action) {
|
for (tui.config().idle_actions) |action| switch (action) {
|
||||||
.cancel => {
|
|
||||||
self.editor.cancel_all_matches();
|
|
||||||
tui.need_render();
|
|
||||||
},
|
|
||||||
.hover => {
|
.hover => {
|
||||||
try self.editor.hover(.{});
|
try self.editor.hover(.{});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue