Skip to content

fix: show correct goal state after an empty by - #1930

Merged
gebner merged 1 commit into
leanprover:masterfrom
Kha:empty-by-goals
Dec 13, 2022
Merged

gebner merged 1 commit into
leanprover:masterfrom
Kha:empty-by-goals

Conversation

@Kha

@Kha Kha commented Dec 8, 2022

Copy link
Copy Markdown
Member

Fixes #1927

by is special because it is the only(?) tacticSeq consumer that we use in "hanging" contexts, i.e. where the keyword/info node start position is indented more than the tactic sequence. That's a problem for the current goal state heuristics when that sequence is empty because then it can't tell what the indentation of that block should be. Thus disable indentation heuristics for the case of an empty by.

@Kha
Kha requested a review from gebner December 8, 2022 10:36
@gebner
gebner enabled auto-merge (rebase) December 13, 2022 00:39
@gebner
gebner disabled auto-merge December 13, 2022 00:39
@gebner
gebner merged commit 88c8cd5 into leanprover:master Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wrong tactic state in have block

2 participants