Fixed #427 - minor error in delimiters

This commit is contained in:
Karl Yngve Lervåg 2016-04-07 21:16:19 +02:00
parent 26a9a71efd
commit d331b9049d
2 changed files with 16 additions and 1 deletions

View File

@ -264,7 +264,7 @@ function! vimtex#delim#toggle_modifier(...) " {{{1
\ : vimtex#delim#get_surrounding('delim_math')
if empty(l:open) | return | endif
let newmods = []
let newmods = ['', '']
let modlist = [['', '']] + g:vimtex_delim_toggle_mod_list
let n = len(modlist)
for i in range(n)

15
test/vader/delims.vader Normal file
View 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})$