mirror of
https://github.com/neovim/neovim.git
synced 2026-01-29 16:40:59 +10:00
Problem: No error when using alpha delimiter with :global. Solution: Check the delimiter like with :substitute. (closes vim/vim#8415)419a40ac96N/A patches for version.c: vim-patch:8.1.2391: cannot build when __QNXNTO__ is defined Problem: Cannot build when __QNXNTO__ is defined. (Ian Wayne Larson) Solution: Move the check for "qansi". (Ken Takata, closes vim/vim#5317)c95e8d6490vim-patch:8.2.2294: VMS: a few remaining problems Problem: VMS: a few remaining problems. Solution: Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)82c38fe508vim-patch:8.2.3034: installing packages on github CI sometimes fails Problem: Installing packages on github CI sometimes fails. Solution: Update package information first. (Christian Brabandt, closes vim/vim#8432)ef7be8348fvim-patch:8.2.3037: configure reports libcanberra when checking for libsodium Problem: Configure reports libcanberra when checking for libsodium. Solution: Adjust the message. (Ozaki Kiichi, closes vim/vim#8435)8ce3ca8961vim-patch:8.2.3038: Amiga built-in version string doesn't include build date Problem: Amiga built-in version string doesn't include build date. Solution: Add the build date if available. (Ola Söder, closes vim/vim#8437)cc65040986vim-patch:8.2.3043: Amiga: cannot get the shell size on MorphOS and AROS Problem: Amiga: cannot get the shell size on MorphOS and AROS. Solution: Use control sequences. (Ola Söder, closes vim/vim#8438)d415d26913
44 lines
1007 B
VimL
44 lines
1007 B
VimL
source check.vim
|
|
|
|
func Test_yank_put_clipboard()
|
|
new
|
|
call setline(1, ['a', 'b', 'c'])
|
|
set clipboard=unnamed
|
|
g/^/normal yyp
|
|
call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6))
|
|
|
|
set clipboard&
|
|
bwipe!
|
|
endfunc
|
|
|
|
func Test_global_set_clipboard()
|
|
CheckFeature clipboard_working
|
|
new
|
|
set clipboard=unnamedplus
|
|
let @+='clipboard' | g/^/set cb= | let @" = 'unnamed' | put
|
|
call assert_equal(['','unnamed'], getline(1, '$'))
|
|
set clipboard&
|
|
bwipe!
|
|
endfunc
|
|
|
|
func Test_nested_global()
|
|
new
|
|
call setline(1, ['nothing', 'found', 'found bad', 'bad'])
|
|
call assert_fails('g/found/3v/bad/s/^/++/', 'E147')
|
|
g/found/v/bad/s/^/++/
|
|
call assert_equal(['nothing', '++found', 'found bad', 'bad'], getline(1, 4))
|
|
bwipe!
|
|
endfunc
|
|
|
|
func Test_global_error()
|
|
call assert_fails('g\\a', 'E10:')
|
|
call assert_fails('g', 'E148:')
|
|
call assert_fails('g/\(/y', 'E476:')
|
|
endfunc
|
|
|
|
func Test_wrong_delimiter()
|
|
call assert_fails('g x^bxd', 'E146:')
|
|
endfunc
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|