From db68526de4a518c4531f9e8b579008946a702400 Mon Sep 17 00:00:00 2001 From: Matthew Lyon Date: Tue, 28 Jan 2014 12:28:46 -0200 Subject: [PATCH] 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. --- autoload/pencil.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/pencil.vim b/autoload/pencil.vim index 3fcca67..4b363f0 100644 --- a/autoload/pencil.vim +++ b/autoload/pencil.vim @@ -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')