1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

optimize: should highlight any non-empty search query, fix #3164

This commit is contained in:
hikerpig
2019-07-28 14:31:33 +08:00
committed by Junyoung Choi
parent a47dac2854
commit 330a444fc5

View File

@@ -106,7 +106,7 @@ export default class CodeEditor extends React.Component {
const component = this
if (component.searchState) cm.removeOverlay(component.searchState)
if (msg.length < 3) return
if (msg.length < 1) return
cm.operation(function () {
component.searchState = makeOverlay(msg, 'searching')