Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug of ST3 in sublime.py line 285.

  • Loading branch information...
commit 1e6ab78fa37faead459979ac6ae6f7ca7455e22f 1 parent 552e57c
@titoBouzout authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 SideBar.py
View
11 SideBar.py
@@ -584,6 +584,9 @@ def confirm(self, paths, in_parent, data):
no.append('No');
no.append('Continue without replacing');
+ while len(no) != len(yes):
+ no.append('ST3 BUG');
+
window.show_quick_panel([yes, no], functools.partial(self.on_done, paths, in_parent))
def on_done(self, paths, in_parent, result):
@@ -1101,6 +1104,10 @@ def confirm(self, paths, display_paths):
no = []
no.append('No');
no.append('Cancel the operation.');
+
+ while len(no) != len(yes):
+ no.append('ST3 BUG');
+
if sublime.platform() == 'osx':
sublime.set_timeout(lambda:window.show_quick_panel([yes, no], functools.partial(self.on_confirm, paths)), 200);
else:
@@ -1187,6 +1194,10 @@ def confirm(self, paths, display_paths):
no = []
no.append('No');
no.append('Cancel the operation.');
+
+ while len(no) != len(yes):
+ no.append('ST3 BUG');
+
if sublime.platform() == 'osx':
sublime.set_timeout(lambda:window.show_quick_panel([yes, no], functools.partial(self.on_confirm, paths)), 200);
else:
Please sign in to comment.
Something went wrong with that request. Please try again.