From 67006f0f10dd0d0c2f7783cccdc5be6ced4934e1 Mon Sep 17 00:00:00 2001 From: Felix Habib <33821218+felixhabib@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:11:32 +1100 Subject: [PATCH] Fix bug in "Wrap selection in tag" command with empty lines (#387) --- .changeset/silver-countries-prove.md | 5 +++++ cypress/e2e/keymaps.cy.ts | 21 +++++++++++++++++++++ src/Playroom/CodeEditor/keymaps/wrap.ts | 4 ++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .changeset/silver-countries-prove.md diff --git a/.changeset/silver-countries-prove.md b/.changeset/silver-countries-prove.md new file mode 100644 index 00000000..260b2202 --- /dev/null +++ b/.changeset/silver-countries-prove.md @@ -0,0 +1,5 @@ +--- +'playroom': patch +--- + +Fix bug in "Wrap selection in tag" command that caused the start cursor to sometimes be in the wrong position when selecting an empty line. diff --git a/cypress/e2e/keymaps.cy.ts b/cypress/e2e/keymaps.cy.ts index 8ab3dd2e..488e2278 100644 --- a/cypress/e2e/keymaps.cy.ts +++ b/cypress/e2e/keymaps.cy.ts @@ -348,6 +348,27 @@ describe('Keymaps', () => {