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

Undo/Redo freezing ST when read_only is set #11

Open
bordaigorl opened this issue Feb 13, 2020 · 0 comments
Open

Undo/Redo freezing ST when read_only is set #11

bordaigorl opened this issue Feb 13, 2020 · 0 comments

Comments

@bordaigorl
Copy link
Collaborator

bordaigorl commented Feb 13, 2020

ST would freeze (and has to be killed) during a coqtop session when
the cursor is positioned after the "proven" region, so the view is not read-only, but an undo action affects the contents of the proven region.
To workaround this issue I disabled undo/redo when the session is ongoing, but it's less than ideal,
see https://github.com/bordaigorl/Sublime-Coq/tree/fix-undo-readonly

Ideally, one would be able to predict the extents of the undo/redo action but that's not supported by the current API.
A less efficient (conservative) workaround would be to save the depth of the history-stack when executing "next statement", and disallow undo/redo beyond that depth.
I don't like any of these options.
Apparently there is no way to set read-only just for a region.

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

1 participant