view src/testdir/test22.in @ 31964:c0a9bc376b54 v9.0.1314

patch 9.0.1314: :messages behavior depends on 'fileformat' of current buffer Commit: https://github.com/vim/vim/commit/1d87e11a1ef201b26ed87585fba70182ad0c468a Author: cero1988 <mirkoceroni@mirkoceroni.it> Date: Thu Feb 16 15:03:12 2023 +0000 patch 9.0.1314: :messages behavior depends on 'fileformat' of current buffer Problem: :messages behavior depends on 'fileformat' of current buffer. Solution: Pass the buffer pointer to where it is used. (Mirko Ceroni, closes #11995)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Feb 2023 16:15: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