ColinKennedy / vim-textobj-block-party

A Vim plugin that selects blocks of Python code
MIT License
9 stars 1 forks source link

Last block in module not selected properly #3

Closed ColinKennedy closed 5 years ago

ColinKennedy commented 6 years ago

What I expected when pressing vib:

if stuff:
    pass
else:
    pass

if stuff:
    pass
else:
    pass

|start|if stuff:
    |cursor|
    pass
else:
    pass|end|

What I got:

if stuff:
    pass
else:
    pass

if stuff:
    pass
else:
    pass

|start|if stuff:
    |cursor|
    pass
else:|end|
    pass

If there's no code after the last block, Block Party misses the last line.

ColinKennedy commented 5 years ago

Fixed with: https://github.com/ColinKennedy/vim-textobj-block-party/pull/9