mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-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 vim/vim#3612)
ac3150d385
This commit is contained in:
@@ -4171,6 +4171,21 @@ static int ins_compl_get_exp(pos_T *ini)
|
||||
EW_FILE|EW_DIR|EW_ADDSLASH|EW_SILENT) == OK) {
|
||||
// May change home directory back to "~".
|
||||
tilde_replace(compl_pattern, num_matches, matches);
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
if (curbuf->b_p_csl[0] != NUL) {
|
||||
for (int i = 0; i < num_matches; i++) {
|
||||
char_u *ptr = matches[i];
|
||||
while (*ptr != NUL) {
|
||||
if (curbuf->b_p_csl[0] == 's' && *ptr == '\\') {
|
||||
*ptr = '/';
|
||||
} else if (curbuf->b_p_csl[0] == 'b' && *ptr == '/') {
|
||||
*ptr = '\\';
|
||||
}
|
||||
ptr += utfc_ptr2len(ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
ins_compl_add_matches(num_matches, matches, p_fic || p_wic);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user