Skip to content

Commit 6c35df1

Browse files
Aster89lpil
authored andcommitted
Fix LaTeX snippet for inverse
If you type <kbd>1</kbd<kbd>2</kbd<kbd>3</kbd>>><kbd>i</kbd><kbd>n</kbd><kbd>v</kbd><kbd>s</kbd>, you'll see that it will be expanded to `3^{-1}`, throwing away anything but the last character before `invs`. This fixes it.
1 parent 12a4415 commit 6c35df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UltiSnips/tex.snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ snippet <! "normal" Aw
400400
\triangleleft
401401
endsnippet
402402

403-
snippet "(\d|\w)+invs" "inverse" Awr
403+
snippet "((\d|\w)+)invs" "inverse" Awr
404404
`!p snip.rv = match.group(1)`^{-1}
405405
endsnippet
406406

0 commit comments

Comments
 (0)