tweekmonster / braceless.vim

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

Incorrectly adds \ at end of line #49

Open lervag opened 6 years ago

lervag commented 6 years ago

I currently use these options for braceless:

let g:braceless_block_key = 'i'
augroup MyBraceless
  autocmd!
  autocmd User BracelessInit nunmap J
  autocmd User BracelessInit iunmap <cr>
  autocmd FileType python BracelessEnable +indent
augroup END

Given this python code:

if (test == 0

Inserting <cr>and at end of line now gives:

if (test == 0 \
        and

instead of what I would expect:

if (test == 0
    and

I'm curious if this is by design or if I am doing something wrong, or if this is a bug.