mirror of
https://github.com/cheat/cheat.git
synced 2025-09-06 12:03:00 +02:00
Bug fix
A bug was introduced in 2.1.6 that would prevent user-defined cheatsheets from being edited more than once.
This commit is contained in:
@ -32,6 +32,10 @@ def create_or_edit(sheet):
|
||||
copy(path(sheet), os.path.join(sheets.default_path(), sheet))
|
||||
edit(sheet)
|
||||
|
||||
# if it exists and is in the default path, then just open it
|
||||
else:
|
||||
edit(sheet)
|
||||
|
||||
|
||||
def create(sheet):
|
||||
""" Creates a cheatsheet """
|
||||
|
Reference in New Issue
Block a user