Undoing "Make Small Caps" changes the selection

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

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

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.

Posts: 1780
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
Site Admin
Posts: 20507
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall

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."