Skip to content

Commit

Permalink
Fix copyToRegister to set a new mark
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Jan 13, 2024
1 parent fc755f5 commit 3d89b7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/registers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d89b7b

Please sign in to comment.