view src/testdir/test22.in @ 25423:3e56078569ca v8.2.3248

patch 8.2.3248: Vim9: error message for wrong input uses wrong line number Commit: https://github.com/vim/vim/commit/921ba529266c8dfc0809d41e1f084e26d25fffb1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 29 22:25:05 2021 +0200 patch 8.2.3248: Vim9: error message for wrong input uses wrong line number Problem: Vim9: error message for wrong input uses wrong line number. Solution: Use the line number of the start of the command. (issue https://github.com/vim/vim/issues/8653)
author Bram Moolenaar <Bram@vim.org>
date Thu, 29 Jul 2021 22:30:05 +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