Mercurial > vim
comparison src/testdir/test_regexp_latin.vim @ 26841:48d6f187e9c0 v8.2.3949
patch 8.2.3949: using freed memory with /%V
Commit: https://github.com/vim/vim/commit/4c13e5e6763c6eb36a343a2b8235ea227202e952
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 30 14:49:43 2021 +0000
patch 8.2.3949: using freed memory with /\%V
Problem: Using freed memory with /\%V.
Solution: Get the line again after getvvcol().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 Dec 2021 16:00:05 +0100 |
parents | 9835f424bef5 |
children | 1e3c49c09260 |
comparison
equal
deleted
inserted
replaced
26840:1f49d1cd3100 | 26841:48d6f187e9c0 |
---|---|
1043 norm O0 | 1043 norm O0 |
1044 call assert_fails("s/\\%')", 'E486:') | 1044 call assert_fails("s/\\%')", 'E486:') |
1045 bwipe! | 1045 bwipe! |
1046 endfunc | 1046 endfunc |
1047 | 1047 |
1048 func Test_using_visual_position() | |
1049 " this was using freed memory | |
1050 new | |
1051 exe "norm 0o\<Esc>\<C-V>k\<C-X>o0" | |
1052 /\%V | |
1053 bwipe! | |
1054 endfunc | |
1055 | |
1048 " vim: shiftwidth=2 sts=2 expandtab | 1056 " vim: shiftwidth=2 sts=2 expandtab |