diff --git a/src/commands/registers.ts b/src/commands/registers.ts index 46e66feed6..04bf7b3728 100644 --- a/src/commands/registers.ts +++ b/src/commands/registers.ts @@ -149,6 +149,8 @@ export class InsertRegister extends EmacsCommand { // Looking for how to insert-replace with selections highlighted.... must copy-paste from Yank command const selections = textEditor.selections; + this.emacsController.pushMark(selections.map((s) => s.active)); + await textEditor.edit((editBuilder) => { selections.forEach((selection) => { if (!selection.isEmpty) {