FooSoft/vim-argwrap

Conflicting options

Drachenfels opened this issue · 2 comments

Hi there,

Python file looks like this:

foo = ['a', 'b', 'c']

For:

let g:argwrap_tail_comma=0
let g:argwrap_wrap_closing_brace=0

foo = [
    'a',
    'b',
    'c']

For:

let g:argwrap_tail_comma=0
let g:argwrap_wrap_closing_brace=1

foo = [
    'a',
    'b',
    'c'
]

For:

let g:argwrap_tail_comma=1
let g:argwrap_wrap_closing_brace=1

foo = [
    'a',
    'b',
    'c',
]

For:

let g:argwrap_tail_comma=1
let g:argwrap_wrap_closing_brace=0

foo = [
    'a',
    'b',
    'c',

Expected:

foo = [
    'a',
    'b',
    'c',]

Heh, nice catch 😅
I guess I haven't tried all the permutations!

Fixed