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)
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index e7752cc..98af482 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -609,20 +609,16 @@
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()