Mercurial > vim
view src/testdir/test_ex_equal.vim @ 30691:024e1c1da31f v9.0.0680
patch 9.0.0680: tests failing with 'breakindent', 'number' and "n" in 'cpo'
Commit: https://github.com/vim/vim/commit/3725116f6ec3b5c01e456b151a60c0690e04f76c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 6 20:48:00 2022 +0100
patch 9.0.0680: tests failing with 'breakindent', 'number' and "n" in 'cpo'
Problem: Tests failing with 'breakindent', 'number' and "n" in 'cpo'.
Solution: Do count the number column in topline if 'breakindent' is set.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Oct 2022 22:00:05 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test Ex := command. func Test_ex_equal() new call setline(1, ["foo\tbar", "bar\tfoo"]) let a = execute('=') call assert_equal("\n2", a) let a = execute('=#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('=l') call assert_equal("\n2\nfoo^Ibar$", a) let a = execute('=p') call assert_equal("\n2\nfoo bar", a) let a = execute('=l#') call assert_equal("\n2\n 1 foo^Ibar$", a) let a = execute('=p#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('.=') call assert_equal("\n1", a) call assert_fails('3=', 'E16:') call assert_fails('=x', 'E488:') bwipe! endfunc " vim: shiftwidth=2 sts=2 expandtab