# HG changeset patch # User Bram Moolenaar # Date 1265904131 -3600 # Node ID 5bedef935ce38062e866c72aec633d38d95dfbf2 # Parent 4a1bcdd9ea559baa08883a6611d055ba5384add6 updated for version 7.2.357 Problem: When changing 'fileformat' from/to "mac" and there is a CR in the text the display is wrong. Solution: Redraw the text when 'fileformat' is changed. (Ben Schmidt) diff --git a/src/option.c b/src/option.c --- a/src/option.c +++ b/src/option.c @@ -5867,6 +5867,10 @@ did_set_string_option(opt_idx, varp, new #endif /* update flag in swap file */ ml_setflags(curbuf); + /* Redraw needed when switching to/from "mac": a CR in the text + * will be displayed differently. */ + if (get_fileformat(curbuf) == EOL_MAC || *oldval == 'm') + redraw_curbuf_later(NOT_VALID); } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 357, +/**/ 356, /**/ 355,