Mercurial > vim
comparison src/ex_getln.c @ 17543:77c3f6428b6c v8.1.1769
patch 8.1.1769: 'shellslash' is also used for completion
commit https://github.com/vim/vim/commit/ac3150d385e6e3f3fe76642aac3cda954d30583f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 28 16:36:39 2019 +0200
patch 8.1.1769: 'shellslash' is also used for completion
Problem: 'shellslash' is also used for completion.
Solution: Add the 'completeslash' option. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/3612)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Jul 2019 16:45:05 +0200 |
parents | e43f0c0c491c |
children | 1348696d07cd |
comparison
equal
deleted
inserted
replaced
17542:8ff04f492f46 | 17543:77c3f6428b6c |
---|---|
5093 | 5093 |
5094 /* Expand wildcards, supporting %:h and the like. */ | 5094 /* Expand wildcards, supporting %:h and the like. */ |
5095 ret = expand_wildcards_eval(&pat, num_file, file, flags); | 5095 ret = expand_wildcards_eval(&pat, num_file, file, flags); |
5096 if (free_pat) | 5096 if (free_pat) |
5097 vim_free(pat); | 5097 vim_free(pat); |
5098 #ifdef BACKSLASH_IN_FILENAME | |
5099 if (p_csl[0] != NUL) | |
5100 { | |
5101 int i; | |
5102 | |
5103 for (i = 0; i < *num_file; ++i) | |
5104 { | |
5105 char_u *ptr = (*file)[i]; | |
5106 | |
5107 while (*ptr != NUL) | |
5108 { | |
5109 if (p_csl[0] == 's' && *ptr == '\\') | |
5110 *ptr = '/'; | |
5111 else if (p_csl[0] == 'b' && *ptr == '/') | |
5112 *ptr = '\\'; | |
5113 ptr += (*mb_ptr2len)(ptr); | |
5114 } | |
5115 } | |
5116 } | |
5117 #endif | |
5098 return ret; | 5118 return ret; |
5099 } | 5119 } |
5100 | 5120 |
5101 *file = (char_u **)""; | 5121 *file = (char_u **)""; |
5102 *num_file = 0; | 5122 *num_file = 0; |