# Ctrl-Z bug

**URL:** <https://forum.literatureandlatte.com/t/ctrl-z-bug/135705>\
**Category:** Scrivener for Windows\
**Tags:** bug\
**Created:** [August 7, 2023, 11:43am UTC](https://forum.literatureandlatte.com/t/ctrl-z-bug/135705 "2023-08-07T11:43:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbarl](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bbarl](https://forum.literatureandlatte.com/u/bbarl)\
**Post date:** [August 7, 2023, 11:43am UTC](https://forum.literatureandlatte.com/t/ctrl-z-bug/135705/1 "2023-08-07T11:43:28Z")

</div>

When I press Control-Z to undo an edit, it performs the undo command fine – but when it’s done it moves the cursor down to the bottom of my file so that I have to go back and find where I had been working. I haven’t seen Ctr-Z do this in any other applications.

I am up to date – Version: 3.1.5.1 (2073405) 64-bit - 06 Jul 2023 – but I think the problem predates this update.

---

<div class="post-metadata">

**Author:** ![Julian\_M1](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@Julian\_M1](https://forum.literatureandlatte.com/u/Julian_M1)\
**Post date:** [August 7, 2023, 11:52am UTC](https://forum.literatureandlatte.com/t/ctrl-z-bug/135705/2 "2023-08-07T11:52:19Z")

</div>

Ditto – or at least _similar_ if the change being undone was a formatting change (though, move to top for me on undo style change). No problem with simple edits, e.g. undo typing.

---

<div class="post-metadata">

**Author:** ![Vincent\_Vincent](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/vincent_vincent/32/19680_2.png) [@Vincent\_Vincent](https://forum.literatureandlatte.com/u/Vincent_Vincent)\
**Post date:** [August 7, 2023, 5:28pm UTC](https://forum.literatureandlatte.com/t/ctrl-z-bug/135705/3 "2023-08-07T17:28:56Z")

</div>

Yeah. That’s pretty annoying.

Note that Ctrl-J will take you back to cursor position.

---

<div class="post-metadata">

**Author:** ![MimeticMouton](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/mimeticmouton/32/34_2.png) [@MimeticMouton](https://forum.literatureandlatte.com/u/MimeticMouton)\
**Post date:** [August 9, 2023, 1:49am UTC](https://forum.literatureandlatte.com/t/ctrl-z-bug/135705/4 "2023-08-09T01:49:36Z")

</div>

I’m aware of the bug with undoing _styles_ scrolling to the top of the editor, but I haven’t so far reproduced this issue of undoing a formatting command scrolling to the bottom. Is there additional context that might be affecting this, e.g. Scrivenings mode or Typewriter Scrolling enabled? If you could share steps that will allow you to reproduce it every time from scratch, that would be helpful.

---

<div class="post-metadata">

**Author:** ![Vincent\_Vincent](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/vincent_vincent/32/19680_2.png) [@Vincent\_Vincent](https://forum.literatureandlatte.com/u/Vincent_Vincent)\
**Post date:** [August 9, 2023, 2:01am UTC](https://forum.literatureandlatte.com/t/ctrl-z-bug/135705/5 "2023-08-09T02:01:38Z")

</div>

It goes to the bottom when you undo pasting something that was copied from an external source.

In my case, I use ComfortKeys to type some redundant stuff for me, and whenever I undo that, I end up with the cursor at the bottom. (So, to be more precise, it is not always pasting. Sometimes it types entries for me. And undo takes me to the bottom.)

(A guess would be that it is related to the content having outsider formatting. I’ll test vs paste and match style.)

EDIT : Yep, the very same content pasted back using `Paste and Match style` doesn’t on undo.  
But then it doesn’t either if I copy paste it normally from Scrivener to Scrivener.  
So maybe my test is worthless.
