Ensure & creates an undo point

This commit is contained in:
Jason Fields 2021-06-02 15:09:21 -04:00
parent 6214cddb72
commit d0e33d2049
2 changed files with 5 additions and 2 deletions

View File

@ -21,6 +21,10 @@ export abstract class BaseAction {
*/
public isJump = false;
/**
* TODO: This property is a lie - it pertains to whether an action creates an undo point...
* See #5058 and rationalize ASAP.
*/
public canBeRepeatedWithDot = false;
/**
@ -201,8 +205,6 @@ export abstract class BaseCommand extends BaseAction {
*/
runsOnceForEachCountPrefix = false;
canBeRepeatedWithDot = false;
/**
* Run the command a single time.
*/

View File

@ -851,6 +851,7 @@ class CommandDot extends BaseCommand {
class CommandRepeatSubstitution extends BaseCommand {
modes = [Mode.Normal];
keys = ['&'];
canBeRepeatedWithDot = true;
public async exec(position: Position, vimState: VimState): Promise<void> {
// Parsing the command from a string, while not ideal, is currently