Skip to content

Commit 61a104c

Browse files
committed
fixup! fixup! s:_skip_special_chars: look at synstack
1 parent 069c682 commit 61a104c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indent/python.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if !get(g:, 'python_pep8_indent_skip_concealed', 0) || !has('conceal')
7878
function! s:_skip_special_chars(line, col)
7979
return match(map(synstack(a:line, a:col),
8080
\ "synIDattr(v:val, 'name')"),
81-
\ '\c'.s:special_chars_syn_pattern)
81+
\ '\c'.s:special_chars_syn_pattern) != -1
8282
endfunction
8383
else
8484
" Also ignore anything concealed.
@@ -94,7 +94,7 @@ else
9494
function! s:_skip_special_chars(line, col)
9595
return match(map(synstack(a:line, a:col),
9696
\ "synIDattr(v:val, 'name')"),
97-
\ '\c'.s:special_chars_syn_pattern)
97+
\ '\c'.s:special_chars_syn_pattern) != -1
9898
\ || s:is_concealed(a:line, a:col)
9999
endfunction
100100
endif

0 commit comments

Comments
 (0)