replace: scroll to top too

This commit is contained in:
chromoxdor
2025-07-25 19:27:02 +02:00
parent cc8494e6e1
commit 9a9f9e5293
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -954,7 +954,8 @@ var isSame;
}
cm.setSelection(cursor.from(), cursor.to());
cm.scrollIntoView({ from: cursor.from(), to: cursor.to() });
//cm.scrollIntoView({ from: cursor.from(), to: cursor.to() });
cm.scrollTo(null, cm.charCoords(cursor.from(), 'local').top); // cXd scroll line to top
highlightCurrentMatch(cursor.from(), cursor.to());
confirmDialog(cm, getDoReplaceConfirm(cm), cm.phrase("Replace?"), [
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -643,6 +643,7 @@ div.CodeMirror-dragcursors {
.search-next-highlight {
background-color: orange !important;
color: black !important;
}
/* Used to force a border model for a node */