Skip to content

Commit

Permalink
Fix regex view loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeed Dehqan authored and Saeed Dehqan committed Aug 18, 2020
1 parent 4d38f2b commit b3ea351
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ Initial release
* Detect bad URLs
* Fix out scope URLs detection
* Show count of results in the title
* Fix regex of Social Networks(for speed)
* Fix regex of Social Networks(for speed)
* Fix regex view loading
6 changes: 2 additions & 4 deletions evine.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,8 @@ func sliceSearch(list *[]string, i string) bool {

// Search the regex on the web pages and show the result on the Response view
func regexSearch() {
loading()
PROG.Gui.Update(func(_ *gocui.Gui) error {
loading()
vrb := VIEWS_OBJ["RESPONSE"]
vrb.Clear()
if RESULTS != nil {
Expand Down Expand Up @@ -1192,9 +1192,7 @@ func initKeybindings(g *gocui.Gui) error {
return nil
}
OPTIONS.Regex = reg
go func() {
regexSearch()
}()
regexSearch()
return nil
}); err != nil {
return err
Expand Down

0 comments on commit b3ea351

Please sign in to comment.