aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tac2entries.ml3
-rw-r--r--tests/example2.v2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/tac2entries.ml b/src/tac2entries.ml
index d2b69aaf7d..73086c406e 100644
--- a/src/tac2entries.ml
+++ b/src/tac2entries.ml
@@ -700,7 +700,8 @@ let print_ltac ref =
let solve default tac =
let status = Proof_global.with_current_proof begin fun etac p ->
let with_end_tac = if default then Some etac else None in
- let (p, status) = Pfedit.solve SelectAll None tac ?with_end_tac p in
+ let g = Proof_bullet.get_default_goal_selector () in
+ let (p, status) = Pfedit.solve g None tac ?with_end_tac p in
(* in case a strict subtree was completed,
go back to the top of the prooftree *)
let p = Proof.maximal_unfocus Vernacentries.command_focus p in
diff --git a/tests/example2.v b/tests/example2.v
index 6b26b78022..95485305dc 100644
--- a/tests/example2.v
+++ b/tests/example2.v
@@ -2,6 +2,8 @@ Require Import Ltac2.Ltac2.
Import Ltac2.Notations.
+Set Default Goal Selector "all".
+
Goal exists n, n = 0.
Proof.
split with (x := 0).