mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
normalize path ending before adding to the DB
This commit is contained in:
parent
54aeff1cae
commit
4685d86a17
@ -89,6 +89,7 @@ class Database:
|
|||||||
"""
|
"""
|
||||||
Increase weight of existing paths or initialize new ones to 10.
|
Increase weight of existing paths or initialize new ones to 10.
|
||||||
"""
|
"""
|
||||||
|
path = path.rstrip(os.sep)
|
||||||
if path not in self.data:
|
if path not in self.data:
|
||||||
self.data[path] = increment
|
self.data[path] = increment
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user