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

Unexpected editing behaviour on "struct" keyword #382

Open
Melr0k opened this issue Feb 11, 2021 · 1 comment
Open

Unexpected editing behaviour on "struct" keyword #382

Melr0k opened this issue Feb 11, 2021 · 1 comment

Comments

@Melr0k
Copy link

Melr0k commented Feb 11, 2021

On v. 0.12 the editor cut the struct keyword into stru and ct, concatenated with the next word.
It still works if we replace the end keyword of my examples by anything.
It doesn't work if it's the first or the last token (nothing else than blank before or after), and in some other cases like on my third example.

  1. Press Enter in the place of the symbol Ø:
    module Mod =
    structØ end
    module Mod =
      stru
        ctend
  2. Press the spacebar selecting the newline after struct:
    module Mod =
    structend
    module Mod =
      stru ctend
  3. In this configuration the bug doesn't occur:
    let f = function
      | [] -> struct end
      | a::b -> g
@AltGr
Copy link
Collaborator

AltGr commented Jul 20, 2021

Looks like the automatic reindentation taking place at the wrong time, and messing up the cursor position before the character is inserted. It might be a bug in the indentation code or in Ace itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants