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

Avoid hard-erroring out of the UI when trying to view an empty query #15

Open
no-identd opened this issue Dec 12, 2018 · 0 comments
Open

Comments

@no-identd
Copy link

no-identd commented Dec 12, 2018

Opening the UI with ui empty and then (with nothing entered) hitting M-v closes the UI and yields:

*** Exception: /home/[REDACTED]/digraphs-with-text/src/Dwt/UI/State.hs:(101,7)-(102,64): Irrefutable pattern failed for pattern commandString : _

That seems unnecessary, especially since it can easily lead to data loss (unless you immediately make use appropriate use of it in the next evaluation, e.g. by going ui it), as this happens any time the top window lacks content.

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