qstrahl/vim-dentures

Unexpected selection

Closed this issue · 1 comments

In this code:

        response = self.session.get(url, *args, **self._kwargs(url, kwargs))   ### line 1

        if 1:     #### line 3
            pass

        if response.from_cache:   #### line 6
            info = "cached"
        else:
            info = "{} left".format(response.headers["X-RateLimit-Remaining"])
            #print("headers:")
            #import pprint; pprint.pprint(dict(response.headers))
        print("GET {}: {}".format(url, info))
        return response

if I am on line 6, and type vii, then line 3 and down is selected, but I would expect line 1 and down to be.

After some discussion on IRC we worked out that although sometimes unintuitive this is (at least for now) intended behaviour