Skip to content

Commit

Permalink
Fix flake errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom1729 committed Mar 20, 2021
1 parent f157671 commit a78ded8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/syntaxtest_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ def run(self, edit, character='^'):
scope_parts = scope.split(' ')
matched_count = -(-score.bit_length() // 3) - 1

score_of_last_part = score >> matched_count*3
maximum_possible_score_of_last_part = len(scope_parts[matched_count - 1].split('.'))
if score_of_last_part != maximum_possible_score_of_last_part:
score_of_last_part = score >> matched_count * 3
possible_score_of_last_part = len(scope_parts[matched_count - 1].split('.'))
if score_of_last_part != possible_score_of_last_part:
matched_count -= 1

scope = ' '.join(scope_parts[matched_count:])
Expand Down

0 comments on commit a78ded8

Please sign in to comment.