mirror of
https://github.com/antonmedv/fx
synced 2024-11-03 15:40:12 +00:00
Fix bug with empty pattern
This commit is contained in:
parent
0f33ceb592
commit
95b40b31b8
8
fx.js
8
fx.js
@ -460,7 +460,9 @@ module.exports = function start(filename, source) {
|
||||
json = source
|
||||
}
|
||||
|
||||
findGen = find(json, highlight)
|
||||
if (highlight) {
|
||||
findGen = find(json, highlight)
|
||||
}
|
||||
render()
|
||||
}
|
||||
|
||||
@ -485,6 +487,8 @@ module.exports = function start(filename, source) {
|
||||
}
|
||||
highlight = regex
|
||||
|
||||
search.hide()
|
||||
|
||||
if (highlight) {
|
||||
findGen = find(json, highlight)
|
||||
findNext()
|
||||
@ -492,8 +496,6 @@ module.exports = function start(filename, source) {
|
||||
findGen = null
|
||||
currentPath = null
|
||||
}
|
||||
|
||||
search.hide()
|
||||
search.setValue('')
|
||||
|
||||
box.height = '100%'
|
||||
|
Loading…
Reference in New Issue
Block a user