From f4b8e57ffd048f9ca46dd7618939ba7a1b2294ec Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 24 Jun 2004 15:53:16 +0000 Subject: updated for version 7.0002 --- src/ex_getln.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index 3c242816b..f2e7f8cc6 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -5181,6 +5181,10 @@ ex_window() set_option_value((char_u *)"ft", 0L, (char_u *)"vim", OPT_LOCAL); } + /* Reset 'textwidth' after setting 'filetype' (the Vim filetype plugin + * sets 'textwidth' to 78). */ + curbuf->b_p_tw = 0; + /* Fill the buffer with the history. */ init_history(); if (hislen > 0) -- cgit v1.2.1