diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-02-11 17:02:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-02-11 17:02:11 +0100 |
commit | 0413d48711cee4f3b70a097652e502009dc744b4 (patch) | |
tree | 0f3a214be7ce82eab2c8e4572ae8188e3b87493e /src/option.c | |
parent | 6dfc28be25dc1e4323b6652fa517e972007ff1bd (diff) | |
download | vim-0413d48711cee4f3b70a097652e502009dc744b4.zip |
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)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 491a8d8e3..99e94d5e0 100644 --- a/src/option.c +++ b/src/option.c @@ -5867,6 +5867,10 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf, #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); } } |