summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 3c242816b5..f2e7f8cc66 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)