mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Merge pull request #193 from svent/normalize_paths
normalize path ending before adding to the DB
This commit is contained in:
commit
9c1c73a673
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user