Skip to content

Commit

Permalink
Fixing bug with closing modifyed tab
Browse files Browse the repository at this point in the history
  • Loading branch information
travmik committed Sep 19, 2013
1 parent 97ddb8f commit b19c0ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ZenTabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ def run(self, edit):
def prepare_lists(self, view_ids):
for view_id in view_ids:
view = win_tabs.get_view_by_id(view_id)
if view is None:
win_tabs.remove_from_list(win_tabs.opened_tab_ids, view_id)
win_tabs.remove_from_list(win_tabs.edited_tab_ids, view_id)
break

is_current = self.window.get_view_index(self.active_view) == self.window.get_view_index(view)
is_draft = view.file_name() is None

Expand Down

0 comments on commit b19c0ff

Please sign in to comment.