Skip to content

Commit

Permalink
Enable isIncrementalSearchingEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
RayZhao1998 committed Apr 4, 2022
1 parent ecd45fe commit 6bbdfcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CodeEdit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
</dict>
</array>
<key>GitHash</key>
<string>ee93d1e16693fd71447a02a5e8cca751bb8c28ea</string>
<string>ecd45fe46e275be30857fba31478cb0ed4887cea</string>
</dict>
</plist>
2 changes: 0 additions & 2 deletions CodeEditModules/Modules/CodeFile/src/CodeEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ struct CodeEditor: NSViewRepresentable {
scrollView: scrollView
)
)
// Enable finding in document
textView.usesFindBar = true
if let highlightr = highlightr,
let string = highlightr.highlight(
content.wrappedValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class CodeEditorTextView: NSTextView {
isContinuousSpellCheckingEnabled = false
isAutomaticQuoteSubstitutionEnabled = false
isAutomaticDashSubstitutionEnabled = false
isIncrementalSearchingEnabled = true
usesFindBar = true
}

required init?(coder: NSCoder) {
Expand Down

0 comments on commit 6bbdfcd

Please sign in to comment.