diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-31 08:25:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 08:25:16 -0400 |
| commit | 2bbbb34ce78ee30c1ee53a9cb3fd1e7608185716 (patch) | |
| tree | 875713dfc511297f472fe6ffebb0ea4f14548420 /src/nvim/testdir/test_textformat.vim | |
| parent | 24b5f69a4922e53baa46faf4f5e0b05da42cd2d5 (diff) | |
| parent | 62ba227155b59c59f4d2d926bf2d4ed7168a0d97 (diff) | |
| download | rneovim-2bbbb34ce78ee30c1ee53a9cb3fd1e7608185716.tar.gz rneovim-2bbbb34ce78ee30c1ee53a9cb3fd1e7608185716.tar.bz2 rneovim-2bbbb34ce78ee30c1ee53a9cb3fd1e7608185716.zip | |
Merge pull request #12804 from janlazo/vim-8.1.1725
[RDY]vim-patch:8.1.{1694,1725,1776,1804,1806,1831,2041,2198,2206},8.2.{1033,1315,1548}
Diffstat (limited to 'src/nvim/testdir/test_textformat.vim')
| -rw-r--r-- | src/nvim/testdir/test_textformat.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textformat.vim b/src/nvim/testdir/test_textformat.vim index 75673adf0a..2223be952c 100644 --- a/src/nvim/testdir/test_textformat.vim +++ b/src/nvim/testdir/test_textformat.vim @@ -1,4 +1,7 @@ " Tests for the various 'formatoptions' settings + +source check.vim + func Test_text_format() enew! @@ -490,6 +493,23 @@ func Test_format_list_auto() set fo& ai& bs& endfunc +func Test_crash_github_issue_5095() + CheckFeature autocmd + + " This used to segfault, see https://github.com/vim/vim/issues/5095 + augroup testing + au BufNew x center + augroup END + + next! x + + bw + augroup testing + au! + augroup END + augroup! testing +endfunc + " Test for formatting multi-byte text with 'fo=t' func Test_tw_2_fo_t() new |