diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-20 19:22:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-20 19:22:18 -0500 |
| commit | a1ec36ff31ff1fd545dd135faa47dc782b41a687 (patch) | |
| tree | c77f727d4e818b036051270efa5197ddb7ea0c96 /src/nvim/testdir/test_normal.vim | |
| parent | 1e5913483469528c7e8d1f927b28c0185eb94941 (diff) | |
| parent | afe7c43025c0b2ebecb13e8fa1cbd1e1c23ba6a2 (diff) | |
| download | rneovim-a1ec36ff31ff1fd545dd135faa47dc782b41a687.tar.gz rneovim-a1ec36ff31ff1fd545dd135faa47dc782b41a687.tar.bz2 rneovim-a1ec36ff31ff1fd545dd135faa47dc782b41a687.zip | |
Merge pull request #13572 from janlazo/vim-8.2.0180
vim-patch:8.2.{180,686,2166,2171}
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
| -rw-r--r-- | src/nvim/testdir/test_normal.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index ad6d325510..7a846e5ea0 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -222,6 +222,21 @@ func Test_normal05_formatexpr_setopt() set formatexpr= endfunc +" When 'formatexpr' returns non-zero, internal formatting is used. +func Test_normal_formatexpr_returns_nonzero() + new + call setline(1, ['one', 'two']) + func! Format() + return 1 + endfunc + setlocal formatexpr=Format() + normal VGgq + call assert_equal(['one two'], getline(1, '$')) + setlocal formatexpr= + delfunc Format + close! +endfunc + func Test_normal06_formatprg() " basic test for formatprg " only test on non windows platform |