Mercurial > vim
view src/testdir/test22.in @ 28909:1890fa76a634 v8.2.4977
patch 8.2.4977: memory access error when substitute expression changes window
Commit: https://github.com/vim/vim/commit/e2bd8600b873d2cd1f9d667c28cba8b1dba18839
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 18 13:11:57 2022 +0100
patch 8.2.4977: memory access error when substitute expression changes window
Problem: Memory access error when substitute expression changes window.
Solution: Disallow changing window in substitute expression.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 May 2022 14:15:02 +0200 |
parents | 30bdd2e4a6f9 |
children |
line wrap: on
line source
Tests for complicated + argument to :edit command STARTTEST :$-1w! Xfile1 :$w! Xfile2 :edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w :w! test.out :e Xfile1 :w >> test.out :qa! ENDTEST The result should be in Xfile1: "fooPIPEbar", in Xfile2: "fooSLASHbar" foo|bar foo/bar