Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Select Method and Function Signatures" also selects if, switch, for #36

Open
iv-mexx opened this issue Mar 19, 2015 · 1 comment
Open
Labels

Comments

@iv-mexx
Copy link

iv-mexx commented Mar 19, 2015

I was testing out the functions of this plugin, had the whole content of some file selected and tried the Select Method and Function Signatures action.

A few lines were selected unexpectedly.

In this sample, the line if(self) is also selected:

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self) {
        ...
    }
    return self;
}

In this sample, the line switch(interfaceOrientation) is also selected:

-(AVCaptureVideoOrientation)AVOrientationFromInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    switch(interfaceOrientation) {
        case UIInterfaceOrientationPortrait:
            ...
    }
}

I've noticed that in the .gif in the Readme, the code formatting is different: There, there's always spaces between the keywords and the opening parenthesis while there are no spaces in my samples.

@fortinmike
Copy link
Owner

Thanks for reporting this, I'll take a look when I get the time.

@fortinmike fortinmike added the bug label Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants