Skip to content

Replaying a macro while it is being recorded hangs the page #177

Open
@veluca93

Description

@veluca93

Minimal repro:

import {EditorView, basicSetup} from "codemirror"
import {vim} from "@replit/codemirror-vim"
let editor : EditorView = new EditorView({
  extensions: [vim(), basicSetup, solarizedDark],
  parent: document.body
})

In the resulting editor, typing qaihello<ESC>@a instantly hangs the page, without any obvious way to recover that I could find.

The behaviour in (neo)vim is somewhat better - qaihello<ESC>@a creates an infinite loop of writing hello - but I feel like even that behaviour would be problematic in a web environment, as the user doesn't have a way to interact with the page once this happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions