diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-10 18:08:59 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-10 18:20:02 -0500 |
| commit | 81b4c881302640747de39f805312966c541acc47 (patch) | |
| tree | 62c78074f611cb812eb630f6e1c88eeabeae06bd /src/nvim/testdir/test_diffmode.vim | |
| parent | 81c9cda296666f049a23d11700e8f0deb6835d7d (diff) | |
| download | rneovim-81b4c881302640747de39f805312966c541acc47.tar.gz rneovim-81b4c881302640747de39f805312966c541acc47.tar.bz2 rneovim-81b4c881302640747de39f805312966c541acc47.zip | |
vim-patch:8.2.2490: 'wrap' option is always reset when starting diff mode
Problem: 'wrap' option is always reset when starting diff mode.
Solution: Add the "followwrap" item in 'diffopt'. (Rick Howe, closes vim/vim#7797)
https://github.com/vim/vim/commit/4223d43c0fb6ead1e611e4469a1680a9228b6015
Diffstat (limited to 'src/nvim/testdir/test_diffmode.vim')
| -rw-r--r-- | src/nvim/testdir/test_diffmode.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_diffmode.vim b/src/nvim/testdir/test_diffmode.vim index f09a64c329..640de1bdc6 100644 --- a/src/nvim/testdir/test_diffmode.vim +++ b/src/nvim/testdir/test_diffmode.vim @@ -964,6 +964,21 @@ func Test_diff_closeoff() enew! endfunc +func Test_diff_followwrap() + new + set diffopt+=followwrap + set wrap + diffthis + call assert_equal(1, &wrap) + diffoff + set nowrap + diffthis + call assert_equal(0, &wrap) + diffoff + set diffopt& + bwipe! +endfunc + func Test_diff_rnu() CheckScreendump |