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

<BUG> Invalid mode states when using poly-markdown #198

Closed
enderger opened this issue Feb 12, 2022 · 7 comments
Closed

<BUG> Invalid mode states when using poly-markdown #198

enderger opened this issue Feb 12, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@enderger
Copy link

When using poly-markdown to have syntax highlighting in Markdown code blocks, it becomes possible for Meow to enter invalid mode states (e.g. both insert and normal shown at the same time, resulting in one of them being unescapable).
Screen Capture

2022-02-12.11-08-54.mp4
@DogLooksGood
Copy link
Collaborator

Hi, it looks like in your video, there's only one state at same moment?

@enderger
Copy link
Author

enderger commented Feb 12, 2022 via email

@DogLooksGood
Copy link
Collaborator

DogLooksGood commented Feb 12, 2022

I just made a quick fix, I'm not sure whether it's enough or not. At least, in my case, it works.


How I reproduce the issue:
Deleting the tailing ``` then insert it back, it will switch to normal state automatically, which is unexpected behavior. Then move cursor into code block, it will switch to insert state automatically, which is also unexpected.

@enderger
Copy link
Author

I just made a quick fix, I'm not sure whether it's enough or not. At least, in my case, it works.

How I reproduce the issue: Deleting the tailing ``` then insert it back, it will switch to normal state automatically, which is unexpected behavior. Then move cursor into code block, it will switch to insert state automatically, which is also unexpected.

Seems like that would work, though in my case reproducing it is as simple as entering a code block in normal mode, switching to insert, then using the mouse/arrow keys to escape. I'll test the fix once I figure out how to get it into Nix-managed EMACS.

@enderger
Copy link
Author

enderger commented Feb 12, 2022

image
Replicated the double-mode issue (in this case, manually running M-x meow-insert-exit fixes the issue).

@DogLooksGood DogLooksGood added the bug Something isn't working label Feb 13, 2022
@DogLooksGood
Copy link
Collaborator

DogLooksGood commented Feb 13, 2022

entering a code block in normal mode, switching to insert, then using the mouse/arrow keys to escape

I can't reproduce with this.

Can you post a screencast?

@enderger
Copy link
Author

Seems to be fixed in the latest patch, I'll reopen if it crops up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants