diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-23 10:29:00 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-23 10:29:42 -0800 |
commit | f24a0170bea7394bd11d9aa47bd189e11e92320d (patch) | |
tree | 315636577a35b87654c3ae590703ffb2fb03216c /fish_tests.cpp | |
parent | fd56465931698f8d2edf3b0964b775e20c25358d (diff) |
Fix for failing to unescape history properly, resulting in a backslash explosion
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index bf77cf17..f1a3cb7f 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -643,6 +643,10 @@ void history_tests_t::test_history(void) { /* Generate a value */ wcstring value = wcstring(L"test item ") + format_val(i); + + /* Maybe add some backslashes */ + if (i % 3 == 0) + value.append(L"(slashies \\\\\\ slashies)"); /* Generate some paths */ path_list_t paths; |