Mercurial > vim
comparison src/testdir/test_visual.vim @ 26587:b2bbc72183a5 v8.2.3823
patch 8.2.3823: test for visual replace is in wrong function
Commit: https://github.com/vim/vim/commit/6ecf58b0d7d9b8fbba780d19d2e6c0f227df715b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 16 10:05:41 2021 +0000
patch 8.2.3823: test for visual replace is in wrong function
Problem: Test for visual replace is in wrong function.
Solution: Move it to another function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Dec 2021 11:15:03 +0100 |
parents | 8da90cdcec68 |
children | be5e01f3ee3b |
comparison
equal
deleted
inserted
replaced
26586:331a5d7a794a | 26587:b2bbc72183a5 |
---|---|
231 call setline(1, 'aaaaaaaaaaaaa') | 231 call setline(1, 'aaaaaaaaaaaaa') |
232 set softtabstop=4 | 232 set softtabstop=4 |
233 exe "normal gggR\<Tab>\<Tab>x" | 233 exe "normal gggR\<Tab>\<Tab>x" |
234 call assert_equal("\txaaaa", getline(1)) | 234 call assert_equal("\txaaaa", getline(1)) |
235 set softtabstop& | 235 set softtabstop& |
236 | |
237 call setline(1, "xã̳x") | |
238 normal gg0lvrb | |
239 call assert_equal("xbx", getline(1)) | |
240 | 236 |
241 enew! | 237 enew! |
242 set noai bs&vim | 238 set noai bs&vim |
243 if exists('save_t_kD') | 239 if exists('save_t_kD') |
244 let &t_kD = save_t_kD | 240 let &t_kD = save_t_kD |
667 %d _ | 663 %d _ |
668 call setline(1, "a") | 664 call setline(1, "a") |
669 normal v$rx | 665 normal v$rx |
670 call assert_equal(['x'], getline(1, '$')) | 666 call assert_equal(['x'], getline(1, '$')) |
671 | 667 |
668 " replace a character with composing characters | |
669 call setline(1, "xã̳x") | |
670 normal gg0lvrb | |
671 call assert_equal("xbx", getline(1)) | |
672 | |
672 bwipe! | 673 bwipe! |
673 endfunc | 674 endfunc |
674 | 675 |
675 func Test_visual_mode_put() | 676 func Test_visual_mode_put() |
676 new | 677 new |