Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 25684:ba9d587f0b29 v8.2.3378
patch 8.2.3378: MS-Windows: completing environment variables with % is wrong
Commit: https://github.com/vim/vim/commit/6024c0427ce1196344439997d5e41a6f8546368c
Author: Albert Liu <albertymliu@gmail.com>
Date: Fri Aug 27 20:59:35 2021 +0200
patch 8.2.3378: MS-Windows: completing environment variables with % is wrong
Problem: MS-Windows: completing environment variables with % is wrong.
Solution: Only complete environment variables with $. (Albert Liu,
closes #8791)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Aug 2021 21:00:04 +0200 |
parents | 17ba70005a2e |
children | ce91372ca07b |
comparison
equal
deleted
inserted
replaced
25683:7be599085162 | 25684:ba9d587f0b29 |
---|---|
7 | 7 |
8 func Test_complete_tab() | 8 func Test_complete_tab() |
9 call writefile(['testfile'], 'Xtestfile') | 9 call writefile(['testfile'], 'Xtestfile') |
10 call feedkeys(":e Xtest\t\r", "tx") | 10 call feedkeys(":e Xtest\t\r", "tx") |
11 call assert_equal('testfile', getline(1)) | 11 call assert_equal('testfile', getline(1)) |
12 | |
13 " Pressing <Tab> after '%' completes the current file, also on MS-Windows | |
14 call feedkeys(":e %\t\r", "tx") | |
15 call assert_equal('e Xtestfile', @:) | |
12 call delete('Xtestfile') | 16 call delete('Xtestfile') |
13 endfunc | 17 endfunc |
14 | 18 |
15 func Test_complete_list() | 19 func Test_complete_list() |
16 " We can't see the output, but at least we check the code runs properly. | 20 " We can't see the output, but at least we check the code runs properly. |