tweekmonster / braceless.vim

:snake: Text objects, folding, and more for Python and other indented languages.
395 stars 13 forks source link

Block indent calculated incorrectly for complex block #21

Closed beaugunderson closed 8 years ago

beaugunderson commented 8 years ago

I think this was introduced in one of the very recent changes (I can verify this in the morning):

screenshot

    @property
    def request_sources_access_names(self):
        # pylint: disable=not-an-iterable
        return [app_label_to_verbose_name(label)
                for label in self.request_sources_access]

    request_message_permission = models.BooleanField(
        choices=BOOL_CHOICES,
        help_text=('Permission to send messages to the member. This does not '
                   'grant access to their email address.'),
        verbose_name='Are you requesting permission to message users?')

    request_username_access = models.BooleanField(
        choices=BOOL_CHOICES,
        help_text=("Access to the member's username. This implicitly enables "
                   'access to anything the user is publicly sharing on Open '
                   'Humans. Note that this is potentially sensitive and/or '
                   'identifying.'),
        verbose_name='Are you requesting Open Humans usernames?')

    coordinator = models.ForeignKey(Member, on_delete=models.PROTECT)
    approved = models.BooleanField(default=False)
    created = models.DateTimeField(auto_now_add=True)
    last_updated = models.DateTimeField(auto_now=True)

    api_access_secret = models.CharField(max_length=64)

    def __unicode__(self):
        return '{}: {}, {}'.format(self.name, self.coordinator.name,
                                   self.leader)
tweekmonster commented 8 years ago

:hurtrealbad: I know what's going on here. It's a matter of deciding if this is a pattern fix or a post scan check. Unfortunately, I have to get to sleep. I'll have a fix in the morning.

In any case, this is another great find. Keep them coming if you find more.