diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-02 01:51:56 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 15:27:56 +0100 |
commit | 61f9a7b0d0308228ce66b7848961152fbb65660f (patch) | |
tree | 00446018c1a9651c56906e77ec4d33dcdda649bd /src/nvim/memline.c | |
parent | ce92e784e14615ba2305105ae2573e3aae49946f (diff) | |
download | rneovim-61f9a7b0d0308228ce66b7848961152fbb65660f.tar.gz rneovim-61f9a7b0d0308228ce66b7848961152fbb65660f.tar.bz2 rneovim-61f9a7b0d0308228ce66b7848961152fbb65660f.zip |
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)
https://github.com/vim/vim/commit/04f62f881c5743d2fdaf7324f6a715381f0d5fcf
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index f783dd84c5..c594782a1c 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -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); |