view src/testdir/test22.in @ 27398:472bb63632bd v8.2.4227

patch 8.2.4227: Vim9: using "lockvar!" in :def function does not work Commit: https://github.com/vim/vim/commit/e939f5ebbae8dd7825d62d84e0c9910fa1756a9c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 26 21:32:59 2022 +0000 patch 8.2.4227: Vim9: using "lockvar!" in :def function does not work Problem: Vim9: using "lockvar!" in :def function does not work. Solution: Add "!" instead of "-1". (closes https://github.com/vim/vim/issues/9634)
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Jan 2022 22:45: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