File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ function! s:FirstFnArgPos(pos)
90
90
let ln = getline(lnr)
91
91
call cursor ([lnr , base_idx + 1 ])
92
92
93
- if ln [base_idx] =~# '["\\,[:space:]]' | return [0, 0] | endif
93
+ if ln [base_idx] =~# '\m ["\\,[:space:]]' | return [0, 0] | endif
94
94
95
95
" Find first collection delimiter or char preceeding whitespace.
96
- let pos = searchpos (' \([{\[(]\|.[[:space:],]\)' , ' cWz' , lnr )
96
+ let pos = searchpos (' \m\ ([{\[(]\|.[[:space:],]\)' , ' cWz' , lnr )
97
97
if pos == [0 , 0 ] | return pos | endif
98
98
99
99
" If at collection delimiter, jump to end delimiter.
@@ -105,7 +105,7 @@ function! s:FirstFnArgPos(pos)
105
105
endif
106
106
107
107
" Search forwards for first non-whitespace/comment char on line.
108
- let pos = searchpos (' [^[:space:],]' , ' Wz' , lnr )
108
+ let pos = searchpos (' \m [^[:space:],]' , ' Wz' , lnr )
109
109
return ln [pos[1] - 1] ==# ';' ? [0, 0] : pos
110
110
endfunction
111
111
You can’t perform that action at this time.
0 commit comments