From 4685d86a17162b2effd8b3801dda2a87ea3a2ea9 Mon Sep 17 00:00:00 2001 From: Sven Taute Date: Mon, 11 Mar 2013 20:38:23 +0100 Subject: [PATCH] normalize path ending before adding to the DB --- bin/autojump | 1 + 1 file changed, 1 insertion(+) 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: