[components] ScriptEditor: Fix reset of the history index

This commit is contained in:
Candice Bentéjac 2024-07-03 11:39:28 +02:00
parent ec98037338
commit 45c9c1796c

View file

@ -27,9 +27,9 @@ class ScriptEditorManager(QObject):
result = stdout.getvalue().strip()
# Add the script to the history and move up the index
# Add the script to the history and move up the index to the top of history stack
self._history.append(script)
self._index = self._index + 1
self._index = len(self._history)
return result