Skip to content

Commit

Permalink
fix: fixed #2387
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Jun 7, 2024
1 parent 6c5dc54 commit 28a0081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ and numbers.

### Issues Resolved

- **#2387** When using a macro, the spacing around the macro was incorrect in
some cases.
- **#2370** The order of the `keydown` and `input` event is now consistent
with the `<textarea>` element.
- **#2369** After typing a shortcut, using the backspace key could result
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/macro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class MacroAtom extends Atom {
}

render(context: Context): Box | null {
const result = Atom.createBox(context, this.body);
const result = Atom.createBox(context, this.body, { type: 'lift' });
if (!result) return null;
if (this.caret) result.caret = this.caret;
return this.bind(context, result);
Expand Down

0 comments on commit 28a0081

Please sign in to comment.