comparison src/testdir/test_cmdline.vim @ 20911:b4835adf384e v8.2.1007

patch 8.2.1007: completion doesn't work after ":r ++arg !" Commit: https://github.com/vim/vim/commit/c8cb883015619cfe6db931ac2d6e15b0be5c56ed Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 18 21:14:30 2020 +0200 patch 8.2.1007: completion doesn't work after ":r ++arg !" Problem: Completion doesn't work after ":r ++arg !". Solution: Skip over "++arg". (Christian Brabandt, closes https://github.com/vim/vim/issues/6275, closes #6258)
author Bram Moolenaar <Bram@vim.org>
date Thu, 18 Jun 2020 21:15:03 +0200
parents 69055d27e85e
children 55b3849ded11
comparison
equal deleted inserted replaced
20910:fe3d963627fa 20911:b4835adf384e
1566 0;/pattern/d 1566 0;/pattern/d
1567 call assert_equal(["2, ", "3, pattern"], getline(1,'$')) 1567 call assert_equal(["2, ", "3, pattern"], getline(1,'$'))
1568 q! 1568 q!
1569 endfunc 1569 endfunc
1570 1570
1571 func Test_read_shellcmd()
1572 CheckUnix
1573 if executable('ls')
1574 " There should be ls in the $PATH
1575 call feedkeys(":r! l\<c-a>\<c-b>\"\<cr>", 'tx')
1576 call assert_match('^"r! .*\<ls\>', @:)
1577 endif
1578
1579 if executable('rm')
1580 call feedkeys(":r! ++enc=utf-8 r\<c-a>\<c-b>\"\<cr>", 'tx')
1581 call assert_notmatch('^"r!.*\<runtest.vim\>', @:)
1582 call assert_match('^"r!.*\<rm\>', @:)
1583 endif
1584 endfunc
1585
1571 1586
1572 " vim: shiftwidth=2 sts=2 expandtab 1587 " vim: shiftwidth=2 sts=2 expandtab