Skip to content

Commit

Permalink
* cap infinite loop in prep for rewrite/removal . fixes #222
Browse files Browse the repository at this point in the history
  • Loading branch information
DisposaBoy committed Mar 30, 2013
1 parent 6962b64 commit 05bfa67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gscomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ def tip(self, edit):
else:
depth = 0
c = ''
while True:

_i = 0
while _i < 1000:
_i += 1

line = view.line(pt)
scope = view.scope_name(pt)
if 'string' in scope or 'comment' in scope:
Expand Down

0 comments on commit 05bfa67

Please sign in to comment.