aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_textformat.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-09-17 10:47:17 -0400
committerGitHub <noreply@github.com>2021-09-17 10:47:17 -0400
commitd56002f7b722facd97b0958e141c8ed2d01495f7 (patch)
tree46e0a3bc02ba86b08e5dbf0cfeae7e615fae5b21 /src/nvim/testdir/test_textformat.vim
parent867e8885991ae450019c18aa5e42546bd4b62c2c (diff)
parent1e0d563967d139dfe5f42993c90f888c5a48c634 (diff)
downloadrneovim-d56002f7b722facd97b0958e141c8ed2d01495f7.tar.gz
rneovim-d56002f7b722facd97b0958e141c8ed2d01495f7.tar.bz2
rneovim-d56002f7b722facd97b0958e141c8ed2d01495f7.zip
Merge pull request #15364 from seandewar/vim-8.2.3337
vim-patch:8.2.{3286,3289,3293,3298,3313,3321,3328,3330,3331,3337,3354,3355,3357,3360,3369,3375}
Diffstat (limited to 'src/nvim/testdir/test_textformat.vim')
-rw-r--r--src/nvim/testdir/test_textformat.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textformat.vim b/src/nvim/testdir/test_textformat.vim
index 29f0433954..bf0706a0c2 100644
--- a/src/nvim/testdir/test_textformat.vim
+++ b/src/nvim/testdir/test_textformat.vim
@@ -975,6 +975,13 @@ func Test_fo_a_w()
exe "normal f4xx"
call assert_equal(['1 2 5 6 7 ', '8 9'], getline(1, 2))
+ " using "cw" leaves cursor in right spot
+ call setline(1, ['Now we g whether that nation, or',
+ \ 'any nation so conceived and,'])
+ set fo=tcqa tw=35
+ exe "normal 2G0cwx\<Esc>"
+ call assert_equal(['Now we g whether that nation, or x', 'nation so conceived and,'], getline(1, 2))
+
set tw=0
set fo&
%bw!