mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user