Created
September 11, 2012 17:45
-
-
Save mbriggs/3700193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # given this code | |
| def foo | |
| a = 1 | |
| b = 2 | |
| unless false | |
| a = 2 | |
| b = 3 | |
| end | |
| end | |
| # if the cursor is inside the method but outside of the unless | |
| # when I invoke the command, the whole method body gets selected | |
| def foo | |
| # a = 1 | |
| # b = 2 | |
| # | |
| # unless false | |
| # a = 2 | |
| # b = 3 | |
| # end | |
| end | |
| # if the cursor is inside the unless | |
| # when I invoke the command, only the inside of the unless is selected | |
| def foo | |
| a = 1 | |
| b = 2 | |
| if false | |
| # a = 2 | |
| # b = 3 | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment