mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
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 #6291)
This commit is contained in:
@@ -311,6 +311,17 @@ 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
|
||||
|
||||
|
Reference in New Issue
Block a user