vim-patch:8.0.0736: OptionSet not triggered when entering diff mode

Problem:    The OptionSet autocommand event is not triggered when entering
            diff mode.
Solution:   use set_option_value() instead of setting the option directly.
            Change the tests from old to new style. (Christian Brabandt)

04f62f881c
This commit is contained in:
Justin M. Keyes
2018-02-02 01:51:56 +01:00
parent ce92e784e1
commit 61f9a7b0d0
3 changed files with 220 additions and 14 deletions

View File

@@ -1336,7 +1336,8 @@ recover_names (
&& len > 1
&& p[-1] == p[-2]) {
// Ends with '//', Use Full path for swap name
tail = (char_u *)make_percent_swname((char *)dir_name, (char *)fname_res);
tail = (char_u *)make_percent_swname((char *)dir_name,
(char *)fname_res);
} else {
tail = path_tail(fname_res);
tail = (char_u *)concat_fnames((char *)dir_name, (char *)tail, TRUE);