Skip to content

Commit

Permalink
Fixed the issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
zsong committed Jul 10, 2015
1 parent 575b53c commit c094669
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions diffy.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ def run(self, edit, **kwargs):

action = kwargs.get('action', None)

view_1 = None
view_2 = None
if window.num_groups() == 2:
view_1 = window.active_view_in_group(0)
view_2 = window.active_view_in_group(1)
view_1 = window.active_view_in_group(0)
view_2 = window.active_view_in_group(1)

if action == 'clear':
if view_1: self.clear(view_1)
Expand Down

0 comments on commit c094669

Please sign in to comment.