@@ -8,18 +8,36 @@ set term=xterm
88
99func Test_paste_normal_mode ()
1010 new
11+ " In first column text is inserted
1112 call setline (1 , [' a' , ' b' , ' c' ])
12- 2
13+ call cursor ( 2 , 1 )
1314 call feedkeys (" \<Esc> [200~foo\<CR> bar\<Esc> [201~" , ' xt' )
14- call assert_equal (' bfoo ' , getline (2 ))
15- call assert_equal (' bar ' , getline (3 ))
15+ call assert_equal (' foo ' , getline (2 ))
16+ call assert_equal (' barb ' , getline (3 ))
1617 call assert_equal (' c' , getline (4 ))
1718
19+ " When repeating text is appended
1820 normal .
1921 call assert_equal (' barfoo' , getline (3 ))
20- call assert_equal (' bar ' , getline (4 ))
22+ call assert_equal (' barb ' , getline (4 ))
2123 call assert_equal (' c' , getline (5 ))
2224 bwipe!
25+
26+ " In second column text is appended
27+ call setline (1 , [' a' , ' bbb' , ' c' ])
28+ call cursor (2 , 2 )
29+ call feedkeys (" \<Esc> [200~foo\<CR> bar\<Esc> [201~" , ' xt' )
30+ call assert_equal (' bbfoo' , getline (2 ))
31+ call assert_equal (' barb' , getline (3 ))
32+ call assert_equal (' c' , getline (4 ))
33+
34+ " In last column text is appended
35+ call setline (1 , [' a' , ' bbb' , ' c' ])
36+ call cursor (2 , 3 )
37+ call feedkeys (" \<Esc> [200~foo\<CR> bar\<Esc> [201~" , ' xt' )
38+ call assert_equal (' bbbfoo' , getline (2 ))
39+ call assert_equal (' bar' , getline (3 ))
40+ call assert_equal (' c' , getline (4 ))
2341endfunc
2442
2543func Test_paste_insert_mode ()
0 commit comments