Undoing "Make Small Caps" changes the selection

Ac
Achim63
Posts: 9
Joined: Tue Nov 28, 2017 2:01 pm
Platform: Mac + Windows

Tue Nov 28, 2017 3:41 pm Post

Steps to reproduce:
- select a complete sentence (starting with a capital, ending with a full stop)
- select Edit/Transformations/Make Small Caps
- press Cmd+Z

Result:
The selection is changed to not include the first and last character.

Expected:
The selection should stay the same.

Use case: I might make up my mind about small caps and want to use italics instead. "Undo" followed by "Cmd+i" will miss parts of the original selection.

br
brookter
Posts: 1361
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Tue Nov 28, 2017 3:52 pm Post

I can reproduce this too.

User avatar
KB
Site Admin
Posts: 19158
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Thu Nov 30, 2017 10:28 pm Post

This is not a bug. Or rather, not a Scrivener one. Scrivener just says: "record that I'm adding this text, so that you can undo it". Then macOS handles the undo. Because certain actions do more than one thing, undo is sometimes a little unreliable with its selection afterwards.
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."