xi-editor/xi-editor

`Cmd-Z` should move the cursor to the point where the undo happens

Open

#765 建立於 2018年7月26日

在 GitHub 查看
 (7 留言) (3 反應) (0 負責人)Rust (19,842 star) (708 fork)batch import
enhancementhacktoberfesthelp wantedux

描述

Related issue https://github.com/google/xi-mac/issues/233

I gave the xi-mac frontend a try and found a small usability issue. When editing a long file (more than one scroll page), moving the cursor, and undoing the edit, the cursor doesn't move to the point where the undo happens.

Steps to reproduce:

  1. Open a long file
  2. Write something on the top of the file
  3. Scroll down and click somewhere so the cursor moves.
  4. Press Cmd-Z

What happens:

Text written in step 2 gets undoed, but there's no visual feedback. The cursor stays where it is.

What should happen:

The cursor and the scroll move to where the undo is happening.

Commits where it happens:

xi-mac: f5ee18b6ae0304efd45e8c33f0782550a86398e6 xi-editor: a417a3afb0b13dba09b44c9b93ec92cc6cb09ddd

Cheers.

貢獻者指南