Skip to content

Commit 9ac6ae4

Browse files
committed
Only keep half of the tactics list
Signed-off-by: Andrew Wells <[email protected]>
1 parent 6ceee8e commit 9ac6ae4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

REPL/Main.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ def runCommand (s : Command) : M IO (CommandResponse ⊕ Error) := do
205205
let tactics ← match s.allTactics with
206206
| some true => tactics trees
207207
| _ => pure []
208+
-- The list is repeated, so we only keep the second half.
209+
let tactics := tactics.drop (tactics.length / 2)
208210
let cmdSnapshot :=
209211
{ cmdState
210212
cmdContext := (cmdSnapshot?.map fun c => c.cmdContext).getD

0 commit comments

Comments
 (0)