Clear overlay text after screen loses focus

This commit is contained in:
pagedown 2022-01-27 09:53:40 +08:00
parent 97e58c5b86
commit 22f077b384
No known key found for this signature in database
GPG key ID: E921CF18AC8FF6EB

View file

@ -3651,6 +3651,7 @@ focus_changed(Screen *self, PyObject *has_focus_) {
if (has_focus != previous) {
self->has_focus = has_focus;
if (has_focus) self->has_activity_since_last_focus = false;
else if (self->overlay_line.is_active) deactivate_overlay_line(self);
if (self->modes.mFOCUS_TRACKING) write_escape_code_to_child(self, CSI, has_focus ? "I" : "O");
Py_RETURN_TRUE;
}