Sublime Forum

Ctrl-Z, Ctrl-Y bug, esp with "redo"

#1

Hello. I have a problem with these keyboard shortcuts.

For some reason, when I undo a large buffer of changes and then redo them again, when it gets to the end of the redo buffer, it will repeat the last redo action over and over again. Normal behavior in this case would be to do nothing.

Thanks,
dep

0 Likes

Use cases for redo_or_repeat?
#2

use ctrl+shift+z to redo without this repeat. it is a feature, not a bug. this is the default binding, you can bind it as you want.

0 Likes

#3

[quote=“dep”]Hello. I have a problem with these keyboard shortcuts.

For some reason, when I undo a large buffer of changes and then redo them again, when it gets to the end of the redo buffer, it will repeat the last redo action over and over again. Normal behavior in this case would be to do nothing.

Thanks,
dep[/quote]

Like vim said is by design, once the redo “stack” is empty it will repeat the last command.
Default bindings (u can change them to whatever you want…):

<binding key="ctrl+y" command="redoOrRepeat"/> <binding key="ctrl+shift+z" command="redo"/>

0 Likes

#4

Oh nice to know. Thanks for that. Cheers.

0 Likes

#5

I’ve changed this in 20091108 so it now works as expected when holding down Ctrl+Y to redo

0 Likes