mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
many small issues found by intellij analysis
This commit is contained in:
@@ -14,9 +14,9 @@ export default class FindInText {
|
||||
const selection = textEditor.model.document.selection;
|
||||
const range = selection.getFirstRange();
|
||||
|
||||
// FIXME
|
||||
for (const item of range.getItems()) {
|
||||
// Fill in the findbox with the current selection if
|
||||
// any
|
||||
// Fill in the findbox with the current selection if any
|
||||
return item.data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user