fix index calculation in remove

This commit is contained in:
Pavel 2020-09-25 22:48:32 +02:00
parent 265940e025
commit 1b97be5bd1
1 changed files with 2 additions and 1 deletions

View File

@ -29,8 +29,9 @@ def add(event):
def remove(event):
global path, index
if len(path) > 1:
index -= 1
path = path[:-1]
if index > len(path) - 1:
index = len(path) - 1
aller_selon(path)
def next(event):