diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-12 09:42:25 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-12 09:42:25 -0700 |
commit | 856d450c7277edd0302f17365322e73dc37808e0 (patch) | |
tree | a0dbc4d12fb803ff8dd24f267b2200d7a872e942 /extension/react-app/src/tabs/gui.tsx | |
parent | 5593c72720dec57f8b734d442e7792fb30632d90 (diff) | |
download | sncontinue-856d450c7277edd0302f17365322e73dc37808e0.tar.gz sncontinue-856d450c7277edd0302f17365322e73dc37808e0.tar.bz2 sncontinue-856d450c7277edd0302f17365322e73dc37808e0.zip |
patch, don't delete non-active steps with cmd+back
Diffstat (limited to 'extension/react-app/src/tabs/gui.tsx')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index 619b91e1..b6a18dc8 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -147,7 +147,8 @@ function GUI(props: GUIProps) { } else if ( e.key === "Backspace" && e.metaKey && - typeof history?.current_index !== "undefined" + typeof history?.current_index !== "undefined" && + history.timeline[history.current_index]?.active ) { client?.deleteAtIndex(history.current_index); } |