Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fill goal" works incorrectly in presence of ==<, >== and `qed #263

Open
marat-rkh opened this issue Apr 19, 2021 · 4 comments
Open

"Fill goal" works incorrectly in presence of ==<, >== and `qed #263

marat-rkh opened this issue Apr 19, 2021 · 4 comments

Comments

@marat-rkh
Copy link
Member

Invoke "Fill goal" on the following code:

Screen Shot 2021-04-19 at 11 18 09 AM

Expected result:

Screen Shot 2021-04-19 at 11 18 54 AM

Actual result:

Screen Shot 2021-04-19 at 11 18 34 AM

Note that `qed lost its `. Also the last {?} is after the qed, not before it. These are bugs.

@ice1000
Copy link
Collaborator

ice1000 commented Apr 19, 2021

It's the pretty printer

@valis
Copy link
Collaborator

valis commented Apr 19, 2021

I thought it just syntactically inserts the expression. Why does it invoke pretty printer?

@ice1000
Copy link
Collaborator

ice1000 commented Apr 19, 2021

Oh, sorry, I remembered it wrongly.

@ice1000
Copy link
Collaborator

ice1000 commented Apr 19, 2021

replaceExprSmart(editor.document, element, null, element.textRange, expr, null, expr.text)

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

No branches or pull requests

3 participants