aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-09-19 14:05:33 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-09-19 14:05:33 -0700
commit7229d7a326618e8eda2308416932921ed2d0d320 (patch)
tree0a2fb4fab431c4a45bf5dd80d55e6f4e8f985f58 /reader.cpp
parent1a7b33e8fb75dd702730ca9637d760fbd23a4000 (diff)
Make redirections and pipes expand abbreviations too
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.cpp b/reader.cpp
index ead99f4b..7aa16643 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -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);