Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Position of cursor after undo+redo is incorrect #6915

Closed
atom/text-buffer
#65

Description

@vincentisambart

In most text editors after:

  • typing some text (the text cursor ending at position A),
  • moving the text cursor somewhere else (the text cursor ending at position B),
  • undo,
  • redo,

the cursor ends up at position A, but in Atom it end at position B.

Activity

  1. vincentisambart commented on May 22, 2015

    @vincentisambart
    Author

    I generally do undo+redo as a way do go back to my last edit that works in any editor, but it working differently in Atom makes Atom inconvenient to use for me.

  2. below43 commented on May 26, 2015

    @below43

    Also, when redoing, it's important to see what the redo is. By redoing then jumping to different cursor position, you cannot see what was redone.

  3. izuzak commented on May 26, 2015

    @izuzak
    Contributor

    I'm guessing the cursor is put back to where it was because of how cursors and selections are handled in general with undo/redo snapshots -- e.g. if you edited something and selected some text after that, then an undo+redo will not only undo+redo the edit but also restore the selection. /cc @maxbrunsfeld who knows more about these things I believe 🏄

  4. self-assigned this
    on May 26, 2015
  5. maxbrunsfeld commented on May 26, 2015

    @maxbrunsfeld
    Contributor

    @vincentisambart @below43 You are absolutely right. We'll fix this.

  6. vincentisambart commented on May 26, 2015

    @vincentisambart
    Author

    Thank you!

  7. maxbrunsfeld commented on May 26, 2015

    @maxbrunsfeld
    Contributor

    The fix will be in 0.202.

  8. below43 commented on May 27, 2015

    @below43

    Thanks Max :)

    Andrew Drake

    On 27 May 2015 at 11:53, Max Brunsfeld [email protected] wrote:

    The fix will be in 0.202.

    —
    Reply to this email directly or view it on GitHub
    #6915 (comment).

  9. maxbrunsfeld commented on Jun 5, 2015

    @maxbrunsfeld
    Contributor

    A few more fixes were just merged that relate to this bug. They will be in Atom 0.207.

  10. lock commented on Jan 22, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  11. locked as resolved and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions