Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -609,20 +609,16 @@ func Test_cmdline_complete_languages() call feedkeys(":language \<c-a>\<c-b>\"\<cr>", 'tx') call assert_match('^"language .*\<ctype\>.*\<messages\>.*\<time\>', @:) - if has('unix') - " TODO: these tests don't work on Windows. lang appears to be 'C' - " but C does not appear in the completion. Why? - call assert_match('^"language .*\<' . lang . '\>', @:) + call assert_match('^"language .*\<' . lang . '\>', @:) + + call feedkeys(":language messages \<c-a>\<c-b>\"\<cr>", 'tx') + call assert_match('^"language .*\<' . lang . '\>', @:) - call feedkeys(":language messages \<c-a>\<c-b>\"\<cr>", 'tx') - call assert_match('^"language .*\<' . lang . '\>', @:) + call feedkeys(":language ctype \<c-a>\<c-b>\"\<cr>", 'tx') + call assert_match('^"language .*\<' . lang . '\>', @:) - call feedkeys(":language ctype \<c-a>\<c-b>\"\<cr>", 'tx') - call assert_match('^"language .*\<' . lang . '\>', @:) - - call feedkeys(":language time \<c-a>\<c-b>\"\<cr>", 'tx') - call assert_match('^"language .*\<' . lang . '\>', @:) - endif + call feedkeys(":language time \<c-a>\<c-b>\"\<cr>", 'tx') + call assert_match('^"language .*\<' . lang . '\>', @:) endfunc func Test_cmdline_complete_env_variable()