fix(mainview): prevent recursive event handler call error
This commit is contained in:
parent
c1d3394246
commit
262aeb1608
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ pub fn handle_editor_event(self: *Self, _: tp.pid_ref, m: tp.message) tp.result
|
||||||
if (text.len == 0)
|
if (text.len == 0)
|
||||||
return self.clear_auto_find(editor);
|
return self.clear_auto_find(editor);
|
||||||
if (!self.is_last_match_text(text)) {
|
if (!self.is_last_match_text(text)) {
|
||||||
editor.find_in_buffer(text) catch return;
|
tp.self_pid().send(.{ "cmd", "find", .{text} }) catch return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue