Skip to content

Commit 22d9ae5

Browse files
committed
fix(env): should toggle to indented multiline from \(
1 parent 2069093 commit 22d9ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/vimtex/env.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ function! vimtex#env#change(open, close, new) abort
142142
endif
143143

144144
let l:coming_from_inline = a:open.match ==# '$'
145-
\ || (
145+
\ || (a:open.match ==# '\(' && !(
146146
\ trim(getline(a:open.lnum)) ==# '\('
147147
\ && trim(getline(a:close.lnum)) ==# '\)'
148-
\ )
148+
\ ))
149149

150150
return l:coming_from_inline
151151
\ ? vimtex#env#change_to_indented(a:open, a:close, l:new)

0 commit comments

Comments
 (0)