Mercurial > vim
comparison src/testdir/test_put.vim @ 32090:327f8a3e0040 v9.0.1376
patch 9.0.1376: accessing invalid memory with put in Visual block mode
Commit: https://github.com/vim/vim/commit/1c73b65229c25e3c1fd8824ba958f7cc4d604f9c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 3 21:11:52 2023 +0000
patch 9.0.1376: accessing invalid memory with put in Visual block mode
Problem: Accessing invalid memory with put in Visual block mode.
Solution: Adjust the cursor column if needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Mar 2023 22:15:03 +0100 |
parents | 575bc8eaa593 |
children | 8201b0fcea02 |
comparison
equal
deleted
inserted
replaced
32089:0e974e1aeb82 | 32090:327f8a3e0040 |
---|---|
231 | 231 |
232 bwipe! | 232 bwipe! |
233 set selection& | 233 set selection& |
234 endfunc | 234 endfunc |
235 | 235 |
236 func Test_put_visual_block_mode() | |
237 enew | |
238 exe "norm 0R\<CR>\<C-C>V" | |
239 sil exe "norm \<C-V>c \<MiddleDrag>" | |
240 set ve=all | |
241 sil norm vz=p | |
242 | |
243 bwipe! | |
244 set ve= | |
245 endfunc | |
246 | |
236 | 247 |
237 " vim: shiftwidth=2 sts=2 expandtab | 248 " vim: shiftwidth=2 sts=2 expandtab |