Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Undo can move the cursor away from the change, obscuring what was just undone #1668

@nardog

Description

@nardog

Describe the issue

Steps to replicate the issue:

  • Start editing something long enough there is a scrollbar
  • Scroll to bottom (Ctrl+End)
  • Enter something
  • Do an undo (Ctrl+Z)
  • Scroll to top (Ctrl+Home)
  • Do a redo (Ctrl+Y)
  • Do an undo (Ctrl+Z)

Actual behavior:
The cursor goes to top (and so does the scroll view), so it's not clear what was just undone.

screencap.mp4

Expected behavior:
The cursor stays adjacent to the chunk that was changed, so it's clear what was just undone.

screencap2.mp4

(Ace)

Browser and platform

Firefox 147, Win11

Reproduction link

https://en.wikipedia.org/w/index.php?title=Florida_State_Road_568&action=edit&cm6enable=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions