mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-10 10:53:48 -05:00
Merge pull request #5 from mattly/bug/init_textwidth
Default b:max_textwidth to -1
This commit is contained in:
@@ -70,6 +70,9 @@ function! pencil#init(...) abort
|
||||
if !exists('b:wrap_mode')
|
||||
let b:wrap_mode = s:WRAP_MODE_OFF
|
||||
endif
|
||||
if !exists("b:max_textwidth")
|
||||
let b:max_textwidth = -1
|
||||
endif
|
||||
|
||||
" If user explicitly requested wrap_mode thru args, go with that.
|
||||
let l:wrap_arg = get(l:args, 'wrap', 'detect')
|
||||
|
||||
Reference in New Issue
Block a user