Clear stale go-to-def link when resizing buffer font
This commit is contained in:
parent
dfeb5e010e
commit
7de8228efd
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,7 @@ use language::{
|
||||||
DiagnosticSeverity, IndentKind, IndentSize, Language, OffsetRangeExt, OffsetUtf16, Point,
|
DiagnosticSeverity, IndentKind, IndentSize, Language, OffsetRangeExt, OffsetUtf16, Point,
|
||||||
Selection, SelectionGoal, TransactionId,
|
Selection, SelectionGoal, TransactionId,
|
||||||
};
|
};
|
||||||
use link_go_to_definition::LinkGoToDefinitionState;
|
use link_go_to_definition::{hide_link_definition, LinkGoToDefinitionState};
|
||||||
pub use multi_buffer::{
|
pub use multi_buffer::{
|
||||||
Anchor, AnchorRangeExt, ExcerptId, ExcerptRange, MultiBuffer, MultiBufferSnapshot, ToOffset,
|
Anchor, AnchorRangeExt, ExcerptId, ExcerptRange, MultiBuffer, MultiBufferSnapshot, ToOffset,
|
||||||
ToPoint,
|
ToPoint,
|
||||||
|
@ -6010,6 +6010,7 @@ impl View for Editor {
|
||||||
if let Some(editor) = handle.upgrade(cx) {
|
if let Some(editor) = handle.upgrade(cx) {
|
||||||
editor.update(cx, |editor, cx| {
|
editor.update(cx, |editor, cx| {
|
||||||
hide_hover(editor, cx);
|
hide_hover(editor, cx);
|
||||||
|
hide_link_definition(editor, cx);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue