Skip to content

Commit 330a444

Browse files
hikerpigRokt33r
authored andcommitted
optimize: should highlight any non-empty search query, fix #3164
1 parent a47dac2 commit 330a444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/components/CodeEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default class CodeEditor extends React.Component {
106106
const component = this
107107

108108
if (component.searchState) cm.removeOverlay(component.searchState)
109-
if (msg.length < 3) return
109+
if (msg.length < 1) return
110110

111111
cm.operation(function () {
112112
component.searchState = makeOverlay(msg, 'searching')

0 commit comments

Comments
 (0)