Skip to content

Commit

Permalink
list must be sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbalaci committed Jun 19, 2014
1 parent 9ae02bb commit 24ef484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jabbapylib/apps/fftabs.py
Expand Up @@ -82,7 +82,7 @@ def option_count():

def option_close(args):
total = ff.get_number_of_tabs()
li = [int(x) for x in args['ID'] if 0 <= int(x) < total]
li = sorted([int(x) for x in args['ID'] if 0 <= int(x) < total])
for pos, val in enumerate(li):
# once a tab is closed, subsequent tabs are shifted one position to the left
ff.put_focus_on_tab(val - pos)
Expand Down

0 comments on commit 24ef484

Please sign in to comment.