Skip to content

Commit

Permalink
fix range
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Nov 15, 2019
1 parent 80def3f commit 0a9d163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyls/plugins/importmagic_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _search_symbol(source, symbol):

symbol_len = len(symbol_tokens)
locations = []
for i in len(source_tokens):
for i in range(len(source_tokens) - symbol_len + 1):
if source_tokens_str[i:i+symbol_len] == symbol_tokens_str:
location_range = {
'start': {
Expand Down

0 comments on commit 0a9d163

Please sign in to comment.