aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-06-18 20:23:12 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-06-18 20:35:06 -0400
commitb198225361dd87161c494627dfebb3d9ffd6cf5a (patch)
tree96cecb4a6d95fc8d14f7226510053364099e223d /src/nvim/testdir
parent749429693df78ab233789cce9af356ab48346b35 (diff)
downloadrneovim-b198225361dd87161c494627dfebb3d9ffd6cf5a.tar.gz
rneovim-b198225361dd87161c494627dfebb3d9ffd6cf5a.tar.bz2
rneovim-b198225361dd87161c494627dfebb3d9ffd6cf5a.zip
vim-patch:8.2.0999: moving to next sentence gets stuck on quote
Problem: Moving to next sentence gets stuck on quote. Solution: When moving to the next sentence doesn't result in moving, advance a character and try again. (closes vim/vim#6291) https://github.com/vim/vim/commit/2f03e5a0a9cfaabb01c57dd3348a05e86c26623c
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_textobjects.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textobjects.vim b/src/nvim/testdir/test_textobjects.vim
index b20c4df311..7863317eb0 100644
--- a/src/nvim/testdir/test_textobjects.vim
+++ b/src/nvim/testdir/test_textobjects.vim
@@ -290,5 +290,16 @@ func! Test_sentence_with_cursor_on_delimiter()
normal! 17|yas
call assert_equal("A '([sentence.])' ", @")
+ " don't get stuck on a quote at the start of a sentence
+ %delete _
+ call setline(1, ['A sentence.', '"A sentence"?', 'A sentence!'])
+ normal gg))
+ call assert_equal(3, getcurpos()[1])
+
+ %delete _
+ call setline(1, ['A sentence.', "'A sentence'?", 'A sentence!'])
+ normal gg))
+ call assert_equal(3, getcurpos()[1])
+
%delete _
endfunc