summaryrefslogtreecommitdiff
path: root/src/selection.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-04-01 22:10:41 +1100
committerMaxime Coste <mawww@kakoune.org>2019-04-01 22:11:18 +1100
commitbaae0c899b14439487b661fa593c80f792855be3 (patch)
treeff7528820df4f18bad9788cd83cb02a009c879f7 /src/selection.cc
parentb8cf457e82a18233b30c696577ea57dd85aee6b8 (diff)
Add -timestamp switch support to the select command
Fixes #2829
Diffstat (limited to 'src/selection.cc')
-rw-r--r--src/selection.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.cc b/src/selection.cc
index 3fff6eb8..30ff599b 100644
--- a/src/selection.cc
+++ b/src/selection.cc
@@ -516,14 +516,14 @@ Selection selection_from_string(StringView desc)
return Selection{anchor, cursor};
}
-SelectionList selection_list_from_string(Buffer& buffer, ConstArrayView<String> descs)
+SelectionList selection_list_from_string(Buffer& buffer, ConstArrayView<String> descs, size_t timestamp)
{
if (descs.empty())
throw runtime_error{"empty selection description"};
auto sels = descs | transform([&](auto&& d) { auto s = selection_from_string(d); clamp(s, buffer); return s; })
| gather<Vector<Selection>>();
- return {SelectionList::UnsortedTag{}, buffer, std::move(sels), buffer.timestamp(), 0};
+ return {SelectionList::UnsortedTag{}, buffer, std::move(sels), timestamp, 0};
}
}