Prevent the user from deleting the prompt

This commit is contained in:
Gnome Ann
2021-09-27 22:21:14 -04:00
parent 954a8a88f9
commit 13b81c7523
2 changed files with 43 additions and 2 deletions

View File

@ -1578,6 +1578,8 @@ def deleterequest():
def inlineedit(chunk, data):
chunk = int(chunk)
if(chunk == 0):
if(len(data.strip()) == 0):
return
vars.prompt = data
else:
vars.actions[chunk-1] = data