diff --git a/bin/autojump b/bin/autojump index c312db0..aec04c5 100755 --- a/bin/autojump +++ b/bin/autojump @@ -89,6 +89,7 @@ class Database: """ Increase weight of existing paths or initialize new ones to 10. """ + path = path.rstrip(os.sep) if path not in self.data: self.data[path] = increment else: