Skip to content

Commit 2d24d07

Browse files
author
Federico Fissore
committed
New editor: mark occurrences enable when "editor.advanced" (hidden pref) is true. Fixes #3102
1 parent 02e94f1 commit 2d24d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Editor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ protected String findClassInZipFile(String base, File file) {
959959
protected SketchTextArea createTextArea() throws IOException {
960960
SketchTextArea textArea = new SketchTextArea(base.getPdeKeywords());
961961
textArea.requestFocusInWindow();
962-
textArea.setMarkOccurrences(true);
962+
textArea.setMarkOccurrences(PreferencesData.getBoolean("editor.advanced"));
963963
textArea.setMarginLineEnabled(false);
964964
textArea.setCodeFoldingEnabled(PreferencesData.getBoolean("editor.code_folding"));
965965
textArea.setAntiAliasingEnabled(PreferencesData.getBoolean("editor.antialias"));

0 commit comments

Comments
 (0)