braceless.vim icon indicating copy to clipboard operation
braceless.vim copied to clipboard

Incorrectly adds \ at end of line

Open lervag opened this issue 7 years ago • 0 comments

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.

lervag avatar Oct 04 '17 06:10 lervag