comparison src/testdir/test_textobjects.vim @ 18677:953e83e09e78 v8.1.2330

patch 8.1.2330: vi' does not always work when 'selection' is exclusive Commit: https://github.com/vim/vim/commit/94d9f4fa65bce6f116cf89bfdabdf5a06509056f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 21 20:55:26 2019 +0100 patch 8.1.2330: vi' does not always work when 'selection' is exclusive Problem: vi' does not always work when 'selection' is exclusive. Solution: Adjust start position.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Nov 2019 21:00:04 +0100
parents 7bfe68b637be
children a4bd28e2cf1d
comparison
equal deleted inserted replaced
18676:fc5d1a4c149c 18677:953e83e09e78
43 43
44 func Test_quote_selection_selection_exclusive() 44 func Test_quote_selection_selection_exclusive()
45 new 45 new
46 call setline(1, "a 'bcde' f") 46 call setline(1, "a 'bcde' f")
47 set selection=exclusive 47 set selection=exclusive
48
48 exe "norm! fdvhi'y" 49 exe "norm! fdvhi'y"
49 call assert_equal('bcde', @") 50 call assert_equal('bcde', @")
51
50 let @"='dummy' 52 let @"='dummy'
51 exe "norm! $gevi'y" 53 exe "norm! $gevi'y"
52 call assert_equal('bcde', @") 54 call assert_equal('bcde', @")
55
56 let @"='dummy'
57 exe "norm! 0fbhvi'y"
58 call assert_equal('bcde', @")
59
53 set selection&vim 60 set selection&vim
54 bw! 61 bw!
55 endfunc 62 endfunc
56 63
57 func Test_quote_selection_selection_exclusive_abort() 64 func Test_quote_selection_selection_exclusive_abort()