Skip to content

Commit

Permalink
fix: fixed arnog#1975
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog authored and helio3197 committed May 26, 2023
1 parent 8338742 commit ff53459
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [Unreleased]

## Bug Fixes

- **#1976** Toggling the virtual keyboard several times would eventually not
display the virtual keyboard.
- Only apply smartFence in math mode (not in text or LaTeX mode).
- **#1975** When inserting a square root, do not insert an index by default

## 0.94.1 (2023-05-21)

## Improvements
Expand Down
2 changes: 1 addition & 1 deletion src/core-definitions/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ defineFunction('sqrt', '[index:auto]{radicand:expression}', {
new SurdAtom({
...options,
body: argAtoms(options.args![1]),
index: argAtoms(options.args![0]) ?? undefined,
index: options.args![0] ? argAtoms(options.args![0]) : undefined,
}),
});

Expand Down

0 comments on commit ff53459

Please sign in to comment.