Show More
@@ -757,25 +757,25 b' class queue:' | |||||
757 | # return any partial match made above |
|
757 | # return any partial match made above | |
758 | if res: |
|
758 | if res: | |
759 | return res |
|
759 | return res | |
760 |
minus = patch.r |
|
760 | minus = patch.rfind('-') | |
761 |
if |
|
761 | if minus >= 0: | |
762 |
res = partial_name(minus |
|
762 | res = partial_name(patch[:minus]) | |
763 | if res: |
|
763 | if res: | |
764 | i = self.series.index(res) |
|
764 | i = self.series.index(res) | |
765 | try: |
|
765 | try: | |
766 |
off = int(minus |
|
766 | off = int(patch[minus+1:] or 1) | |
767 | except(ValueError, OverflowError): |
|
767 | except(ValueError, OverflowError): | |
768 | pass |
|
768 | pass | |
769 | else: |
|
769 | else: | |
770 | if i - off >= 0: |
|
770 | if i - off >= 0: | |
771 | return self.series[i - off] |
|
771 | return self.series[i - off] | |
772 |
plus = patch.r |
|
772 | plus = patch.rfind('+') | |
773 |
if |
|
773 | if plus >= 0: | |
774 |
res = partial_name(plus |
|
774 | res = partial_name(patch[:plus]) | |
775 | if res: |
|
775 | if res: | |
776 | i = self.series.index(res) |
|
776 | i = self.series.index(res) | |
777 | try: |
|
777 | try: | |
778 |
off = int(plus |
|
778 | off = int(patch[plus+1:] or 1) | |
779 | except(ValueError, OverflowError): |
|
779 | except(ValueError, OverflowError): | |
780 | pass |
|
780 | pass | |
781 | else: |
|
781 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now