Permalink
Browse files

Correction to delete

  • Loading branch information...
1 parent 14e6e1c commit 88df24df930b19ccd6021da8e41ef7baeede188f @agibsonsw committed Oct 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 AndyEdits.py
View
@@ -219,8 +219,8 @@ def on_chosen(self, index):
return
edited = self.view.get_regions("edited_rgns") or []
reg = edited[index]
- current_editr = self.view.get_regions("edited_rgn")[0]
- if current_editr and reg.intersects(current_editr):
+ current_editr = self.view.get_regions("edited_rgn") or []
+ if current_editr and reg.intersects(current_editr[0]):
sublime.status_message('Cannot delete most recent edit.')
return
del edited[index]

0 comments on commit 88df24d

Please sign in to comment.