mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-15 21:33:47 -05:00
Default b:max_textwidth to -1
Fixes #4 In general, I think it's good hygiene for a function to do this if it's value is expected to be set elsewhere.
This commit is contained in:
@@ -70,6 +70,9 @@ function! pencil#init(...) abort
|
|||||||
if !exists('b:wrap_mode')
|
if !exists('b:wrap_mode')
|
||||||
let b:wrap_mode = s:WRAP_MODE_OFF
|
let b:wrap_mode = s:WRAP_MODE_OFF
|
||||||
endif
|
endif
|
||||||
|
if !exists("b:max_textwidth")
|
||||||
|
let b:max_textwidth = -1
|
||||||
|
endif
|
||||||
|
|
||||||
" If user explicitly requested wrap_mode thru args, go with that.
|
" If user explicitly requested wrap_mode thru args, go with that.
|
||||||
let l:wrap_arg = get(l:args, 'wrap', 'detect')
|
let l:wrap_arg = get(l:args, 'wrap', 'detect')
|
||||||
|
|||||||
Reference in New Issue
Block a user