vim-patch:7.4.830

Problem:    Resetting 'encoding' when doing ":set all&" causes problems.
            (Bjorn Linse) Display is not updated.
Solution:   Do not reset 'encoding'. Do a full redraw.

b341dda575

---

":set all&" does not reset 'encoding' in neovim.
This commit is contained in:
watiko
2016-02-11 21:59:08 +09:00
parent f03ab69a35
commit b6fdc3eb47
2 changed files with 4 additions and 3 deletions

View File

@@ -1150,9 +1150,10 @@ do_set (
*/ */
arg += 3; arg += 3;
if (*arg == '&') { if (*arg == '&') {
++arg; arg++;
/* Only for :set command set global value of local options. */ // Only for :set command set global value of local options.
set_options_default(OPT_FREE | opt_flags); set_options_default(OPT_FREE | opt_flags);
redraw_all_later(CLEAR);
} else { } else {
showoptions(1, opt_flags); showoptions(1, opt_flags);
did_show = TRUE; did_show = TRUE;

View File

@@ -458,7 +458,7 @@ static int included_patches[] = {
// 833, // 833,
// 832, // 832,
// 831, // 831,
// 830, 830,
// 829 NA // 829 NA
828, 828,
// 827, // 827,