Fixed #427 - minor error in delimiters
This commit is contained in:
parent
26a9a71efd
commit
d331b9049d
@ -264,7 +264,7 @@ function! vimtex#delim#toggle_modifier(...) " {{{1
|
|||||||
\ : vimtex#delim#get_surrounding('delim_math')
|
\ : vimtex#delim#get_surrounding('delim_math')
|
||||||
if empty(l:open) | return | endif
|
if empty(l:open) | return | endif
|
||||||
|
|
||||||
let newmods = []
|
let newmods = ['', '']
|
||||||
let modlist = [['', '']] + g:vimtex_delim_toggle_mod_list
|
let modlist = [['', '']] + g:vimtex_delim_toggle_mod_list
|
||||||
let n = len(modlist)
|
let n = len(modlist)
|
||||||
for i in range(n)
|
for i in range(n)
|
||||||
|
15
test/vader/delims.vader
Normal file
15
test/vader/delims.vader
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Given tex (Some complicated delimited math):
|
||||||
|
$\bigl(\begin{smallmatrix}
|
||||||
|
\Q^* & \\
|
||||||
|
& 1 \\
|
||||||
|
\end{smallmatrix}\bigr)$
|
||||||
|
|
||||||
|
Do (Toggle math delimiters):
|
||||||
|
3jtsd
|
||||||
|
|
||||||
|
Expect tex (Toggled math delimiters):
|
||||||
|
$(\begin{smallmatrix}
|
||||||
|
\Q^* & \\
|
||||||
|
& 1 \\
|
||||||
|
\end{smallmatrix})$
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user