Skip to content

Commit

Permalink
Merge pull request #7 from HcDevel/Issue-#6
Browse files Browse the repository at this point in the history
Fixed issue #6
  • Loading branch information
HcDevel authored and HcDevel committed May 17, 2014
2 parents 331dcaa + f9705a6 commit 20b7dc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions search.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def search (self, q): #search for matching
have_to_follow = False
wildcard_start = cursor
else:
position = q.find(search)
position = q.find(search, cursor)

if (position == cursor):
cursor += len(search) + 1
Expand All @@ -43,7 +43,6 @@ def search (self, q): #search for matching
wildcard_end = 0

if (keyword[-1] == "*" and keyword[-2] == search):
print (cursor)
wildcards_found[wildcard_counter + 1] = q[cursor:]
wildcard_counter += 1

Expand Down

0 comments on commit 20b7dc9

Please # to comment.