mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix Retry and Back buttons popping the wrong chunk
This commit is contained in:
@ -887,7 +887,7 @@ def actionretry(data):
|
||||
if(len(vars.actions) > 0):
|
||||
last_key = vars.actions.get_last_key()
|
||||
vars.actions.pop()
|
||||
remove_story_chunk(last_key)
|
||||
remove_story_chunk(last_key + 1)
|
||||
calcsubmit('')
|
||||
|
||||
#==================================================================#
|
||||
@ -900,7 +900,7 @@ def actionback():
|
||||
if(len(vars.actions) > 0):
|
||||
last_key = vars.actions.get_last_key()
|
||||
vars.actions.pop()
|
||||
remove_story_chunk(last_key)
|
||||
remove_story_chunk(last_key + 1)
|
||||
|
||||
#==================================================================#
|
||||
# Take submitted text and build the text to be given to generator
|
||||
|
Reference in New Issue
Block a user