comparison src/testdir/test_cmdline.vim @ 20818:a0b147774bd4 v8.2.0961

patch 8.2.0961: MS-Windows: no completion for locales Commit: https://github.com/vim/vim/commit/ec68028604b6ee799b2ef5fc861ec5163e82914f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 19:35:32 2020 +0200 patch 8.2.0961: MS-Windows: no completion for locales Problem: MS-Windows: no completion for locales. Solution: Use the directories in $VIMRUNTIME/lang to complete locales. (Christian Brabandt, closes 36248)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 19:45:04 +0200
parents 32f24b8c9c2d
children 69055d27e85e
comparison
equal deleted inserted replaced
20817:ed270e2a7a64 20818:a0b147774bd4
607 let lang = substitute(execute('language messages'), '.*"\(.*\)"$', '\1', '') 607 let lang = substitute(execute('language messages'), '.*"\(.*\)"$', '\1', '')
608 608
609 call feedkeys(":language \<c-a>\<c-b>\"\<cr>", 'tx') 609 call feedkeys(":language \<c-a>\<c-b>\"\<cr>", 'tx')
610 call assert_match('^"language .*\<ctype\>.*\<messages\>.*\<time\>', @:) 610 call assert_match('^"language .*\<ctype\>.*\<messages\>.*\<time\>', @:)
611 611
612 if has('unix') 612 call assert_match('^"language .*\<' . lang . '\>', @:)
613 " TODO: these tests don't work on Windows. lang appears to be 'C' 613
614 " but C does not appear in the completion. Why? 614 call feedkeys(":language messages \<c-a>\<c-b>\"\<cr>", 'tx')
615 call assert_match('^"language .*\<' . lang . '\>', @:) 615 call assert_match('^"language .*\<' . lang . '\>', @:)
616 616
617 call feedkeys(":language messages \<c-a>\<c-b>\"\<cr>", 'tx') 617 call feedkeys(":language ctype \<c-a>\<c-b>\"\<cr>", 'tx')
618 call assert_match('^"language .*\<' . lang . '\>', @:) 618 call assert_match('^"language .*\<' . lang . '\>', @:)
619 619
620 call feedkeys(":language ctype \<c-a>\<c-b>\"\<cr>", 'tx') 620 call feedkeys(":language time \<c-a>\<c-b>\"\<cr>", 'tx')
621 call assert_match('^"language .*\<' . lang . '\>', @:) 621 call assert_match('^"language .*\<' . lang . '\>', @:)
622
623 call feedkeys(":language time \<c-a>\<c-b>\"\<cr>", 'tx')
624 call assert_match('^"language .*\<' . lang . '\>', @:)
625 endif
626 endfunc 622 endfunc
627 623
628 func Test_cmdline_complete_env_variable() 624 func Test_cmdline_complete_env_variable()
629 let $X_VIM_TEST_COMPLETE_ENV = 'foo' 625 let $X_VIM_TEST_COMPLETE_ENV = 'foo'
630 call feedkeys(":edit $X_VIM_TEST_COMPLETE_E\<C-A>\<C-B>\"\<CR>", 'tx') 626 call feedkeys(":edit $X_VIM_TEST_COMPLETE_E\<C-A>\<C-B>\"\<CR>", 'tx')