ColinKennedy / vim-textobj-block-party

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

Header issue (vAB binding) #11

Closed ColinKennedy closed 5 years ago

ColinKennedy commented 5 years ago

file: another.py

def something():
    a = 'asdfsa'

    for item in items:
        asdfsadfsfd
        |cursor|
        # pass
        asdfasdfasfd

    stuff = 8

Raised this error:

Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/home/selecaotwo/.vim/bundle/vim-textobj-block-party/pythonx/vim_textobj_block_party/party.py", line 105, in around_deep
    boundary = _get_buffer_context(extra_lines=True, search=search, two_way=two_way)
  File "/home/selecaotwo/.vim/bundle/vim-textobj-block-party/pythonx/vim_textobj_block_party/party.py", line 66, in _get_buffer_context
    customize=customize,
  File "/home/selecaotwo/.vim/bundle/vim-textobj-block-party/pythonx/vim_textobj_block_party/block_party/party.py", line 416, in get_boundary
    customize=customize,
  File "/home/selecaotwo/.vim/bundle/vim-textobj-block-party/pythonx/vim_textobj_block_party/block_party/party.py", line 543, in get_expanded_boundary
    start = get_start(node, search=search, customize=customize)
  File "/home/selecaotwo/.vim/bundle/vim-textobj-block-party/pythonx/vim_textobj_block_party/block_party/party.py", line 450, in get_start
    header = _get_previous_leaf_header(node) + header
TypeError: can only concatenate list (not "NoneType") to list