mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-10 10:58:33 +03:00
Ensure &
creates an undo point
This commit is contained in:
parent
6214cddb72
commit
d0e33d2049
@ -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.
|
||||
*/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user