Mercurial > vim
changeset 2073:5bedef935ce3 v7.2.357
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)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Thu, 11 Feb 2010 17:02:11 +0100 |
parents | 4a1bcdd9ea55 |
children | 1bb06e6512a2 |
files | src/option.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }