aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-28 23:22:03 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-28 23:22:03 -0700
commitaa1b065dd1c03f7c0867d002badcf0dc88feb3c4 (patch)
tree626279cd8bed7dd5cf46e7008a55f7b61818e808 /fish_tests.cpp
parent7248b2213d53b34747b89594f563e1c32dd9a835 (diff)
Allow appending path hints to history items after they have been added,
allowing us to avoid the delay before items appear in history. Should fix #984
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 3cca2a0c..92bd0f71 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -2203,7 +2203,7 @@ void history_tests_t::test_history(void)
test_history_matches(search3, 0);
/* Test history escaping and unescaping, yaml, etc. */
- std::vector<history_item_t> before, after;
+ history_item_list_t before, after;
history.clear();
size_t i, max = 100;
for (i=1; i <= max; i++)
@@ -2225,7 +2225,8 @@ void history_tests_t::test_history(void)
}
/* Record this item */
- history_item_t item(value, time(NULL), paths);
+ history_item_t item(value, time(NULL));
+ item.required_paths = paths;
before.push_back(item);
history.add(item);
}