@codemirror/search
Advanced tools
Comparing version 6.5.2 to 6.5.3
@@ -0,1 +1,7 @@ | ||
## 6.5.3 (2023-09-14) | ||
### Bug fixes | ||
The `gotoLine` dialog is now populated with the current line number when you open it. | ||
## 6.5.2 (2023-08-26) | ||
@@ -2,0 +8,0 @@ |
@@ -309,3 +309,4 @@ import { showPanel, EditorView, getPanel, Decoration, ViewPlugin, runScopeHandlers } from '@codemirror/view'; | ||
function createLineDialog(view) { | ||
let input = elt("input", { class: "cm-textfield", name: "line" }); | ||
let line = String(view.state.doc.lineAt(view.state.selection.main.head).number); | ||
let input = elt("input", { class: "cm-textfield", name: "line", value: line }); | ||
let dom = elt("form", { | ||
@@ -386,3 +387,3 @@ class: "cm-gotoLine", | ||
if (panel) | ||
panel.dom.querySelector("input").focus(); | ||
panel.dom.querySelector("input").select(); | ||
return true; | ||
@@ -389,0 +390,0 @@ }; |
{ | ||
"name": "@codemirror/search", | ||
"version": "6.5.2", | ||
"version": "6.5.3", | ||
"description": "Search functionality for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131608
2802