Skip to content

Commit 3941004

Browse files
authored
Merge pull request #5545 from adamblake/patch-1
Respect cell.is_editable during find-and-replace
2 parents b152dd3 + f2db026 commit 3941004

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

notebook/static/notebook/js/searchandreplace.js

+4
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ define([
308308
var cells = get_cells(env);
309309
for (var c = 0; c < cells.length; c++) {
310310
var cell = cells[c];
311+
if (!cell.is_editable()) {
312+
continue;
313+
}
314+
311315
var oldvalue = cell.code_mirror.getValue();
312316
var newvalue = oldvalue.replace(reg , replaceValue);
313317
cell.code_mirror.setValue(newvalue);

0 commit comments

Comments
 (0)