view src/testdir/test22.in @ 23972:a620df0ebbe5 v8.2.2528

patch 8.2.2528: Vim9: crash when compiling lambda fails Commit: https://github.com/vim/vim/commit/c7dac8534ee7f7a49e9d7a37330397c64455cdd7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 17 18:49:11 2021 +0100 patch 8.2.2528: Vim9: crash when compiling lambda fails Problem: Vim9: crash when compiling lambda fails. Solution: Bail out after compilation fails. (closes https://github.com/vim/vim/issues/7862)
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Feb 2021 19:00:04 +0100
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