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

Fix jumping to 'def' and 'class' inside words using ]m #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mglart
Copy link

@mglart mglart commented Jun 24, 2017

When a variable is declared starting with def or class the ]m and [m commands jump to wrong location.

i.e.:

def foo:
    default = 0 #  ]m would jump to here
    classic = 0 #  same here

Fix regex for finding python function and class definitions to not match 'def' and 'class' inside words.

def foo:
    def_ault = 0 #  ]m would jump to here
    class_ic = 0 #  same here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants