view src/testdir/test_excmd.vim @ 17823:7e6b7a4f13bc v8.1.1908

patch 8.1.1908: every popup window consumes a buffer number Commit: https://github.com/vim/vim/commit/00b0d6d8dc2c04b3cb26ea3c3d58527939f01af6 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 21 22:25:30 2019 +0200 patch 8.1.1908: every popup window consumes a buffer number Problem: Every popup window consumes a buffer number. Solution: Recycle buffers only used for popup windows. Do not list popup window buffers.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Aug 2019 22:30:04 +0200
parents a1437b8f2fac
children 18d7337b6837
line wrap: on
line source

" Tests for various Ex commands.

func Test_ex_delete()
  new
  call setline(1, ['a', 'b', 'c'])
  2
  " :dl is :delete with the "l" flag, not :dlist
  .dl
  call assert_equal(['a', 'c'], getline(1, 2))
endfunc

func Test_range_error()
  call assert_fails(':.echo 1', 'E481:')
  call assert_fails(':$echo 1', 'E481:')
  call assert_fails(':1,2echo 1', 'E481:')
  call assert_fails(':+1echo 1', 'E481:')
  call assert_fails(':/1/echo 1', 'E481:')
  call assert_fails(':\/echo 1', 'E481:')
  normal vv
  call assert_fails(":'<,'>echo 1", 'E481:')
endfunc