scvim icon indicating copy to clipboard operation
scvim copied to clipboard

SCfindArgs() references the wrong method

Open andrewcsmith opened this issue 11 years ago • 0 comments

When my cursor is where it is below:

EnvGen.kr(Env.perc(0, [CURSOR]1), gate, doneAction: 2) * ...

And I run :call SCfindArgs(), it gives me this:

-> EnvGen *kr (envelope: nil, gate: 1, levelScale: 1, levelBias: 0, timeScale: 1, doneAction: 0)

Really, though, I want the args for Env *perc, not EnvGen *kr.

It looks as though it's just grabbing the first method of the given line of the text file. Unfortunately this means that using method highlighting enforces a particular way of formatting code.

andrewcsmith avatar Aug 07 '14 15:08 andrewcsmith