mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix(code/find): clean up search
This commit is contained in:
@@ -194,6 +194,15 @@ export default class CodeMirror extends EditorView {
|
||||
this.searchPlugin?.scrollToMatch(nextFound);
|
||||
}
|
||||
|
||||
cleanSearch() {
|
||||
if (this.searchPlugin) {
|
||||
this.dispatch({
|
||||
effects: this.searchHighlightCompartment.reconfigure([])
|
||||
});
|
||||
this.searchPlugin = null;
|
||||
}
|
||||
}
|
||||
|
||||
async setMimeType(mime: string) {
|
||||
let newExtension: Extension[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user