Merge pull request #5 from mattly/bug/init_textwidth

Default b:max_textwidth to -1
This commit is contained in:
Reed Esau
2014-01-28 19:12:36 -08:00

View File

@@ -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')