diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-06-01 16:01:38 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-06-01 16:01:38 +0100 |
| commit | a5e028e1b16f1fc802b8dcee26791e8c64ac2aea (patch) | |
| tree | 67b80331ee83632b7724114a8b112f4ac561bc5e /src/context.hh | |
| parent | 1b30c0f4fbc9bad48d0689fd748206ce7072b38d (diff) | |
Add Context::set_selections(std::vector<Selection>)
This methods avoids updating the context selection needlessly as
they are going to get replaced anyway.
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/context.hh b/src/context.hh index 90961216..3aa4e0cf 100644 --- a/src/context.hh +++ b/src/context.hh @@ -51,6 +51,7 @@ public: SelectionList& selections(); const SelectionList& selections() const; std::vector<String> selections_content() const; + void set_selections(std::vector<Selection> sels); void change_buffer(Buffer& buffer); |
