Skip to content

Commit 91fa38c

Browse files
committed
Merge pull request #347 from artm/localize-m
make the m variable script-local
2 parents 63fdf23 + 68290c3 commit 91fa38c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

indent/javascript.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ let s:ternary_q = '^\s\+?'
7070

7171
let s:case_indent = &sw
7272
let s:case_indent_after = &sw
73-
let m = matchlist(&cinoptions, ':\(.\)')
74-
if (len(m) > 2)
75-
let s:case_indent = m[1]
73+
let s:m = matchlist(&cinoptions, ':\(.\)')
74+
if (len(s:m) > 2)
75+
let s:case_indent = s:m[1]
7676
endif
77-
let m = matchlist(&cinoptions, '=\(.\)')
78-
if (len(m) > 2)
79-
let s:case_indent_after = m[1]
77+
let s:m = matchlist(&cinoptions, '=\(.\)')
78+
if (len(s:m) > 2)
79+
let s:case_indent_after = s:m[1]
8080
endif
8181
" 2. Auxiliary Functions {{{1
8282
" ======================

0 commit comments

Comments
 (0)