We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c52e95 commit dabc713Copy full SHA for dabc713
client/utils/codemirror-search.js
@@ -52,7 +52,8 @@ function SearchState() {
52
this.caseInsensitive = true;
53
this.wholeWord = false;
54
this.replaceStarted = false;
55
- this.lastFileName = 'sketch.js';
+ this.lastFileName =
56
+ document.querySelector('.editor__file-name span')?.innerText || null;
57
}
58
59
function getSearchState(cm) {
0 commit comments