view src/testdir/test22.in @ 26634:c75f70257cf5 v8.2.3846

patch 8.2.3846: no error when using control character for 'lcs' or 'fcs' Commit: https://github.com/vim/vim/commit/60618c8f1a7ea55452837a446525272142286471 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Dec 18 15:32:46 2021 +0000 patch 8.2.3846: no error when using control character for 'lcs' or 'fcs' Problem: No error when using control character for 'lcs' or 'fcs'. Solution: Use char2cells() to check the width. (closes https://github.com/vim/vim/issues/9369)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Dec 2021 16:45:03 +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