mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Make redirections and pipes expand abbreviations too
This commit is contained in:
parent
1a7b33e8fb
commit
7229d7a326
1 changed files with 1 additions and 1 deletions
|
@ -1238,7 +1238,7 @@ static bool insert_string(editable_line_t *el, const wcstring &str, bool allow_e
|
|||
while (cursor < len)
|
||||
{
|
||||
/* Determine the position of the next expansion-triggering char (possibly none), and the end of the range we wish to insert */
|
||||
const wchar_t *expansion_triggering_chars = L" ;";
|
||||
const wchar_t *expansion_triggering_chars = L" ;|&^><";
|
||||
size_t char_triggering_expansion_pos = allow_expand_abbreviations ? str.find_first_of(expansion_triggering_chars, cursor) : wcstring::npos;
|
||||
bool has_expansion_triggering_char = (char_triggering_expansion_pos != wcstring::npos);
|
||||
size_t range_end = (has_expansion_triggering_char ? char_triggering_expansion_pos + 1 : len);
|
||||
|
|
Loading…
Reference in a new issue