diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-08-06 21:51:35 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-08-29 08:01:43 +0200 |
| commit | 611bdebf3cd43c05bdf7573adf4f4a0a2fbc2efe (patch) | |
| tree | 5203ea23a6b60cd7e668c47cb5a3993619675245 /src/context.hh | |
| parent | aeae2fba37c62e1603bb4c9bd589534090eef6ed (diff) | |
Access selections via helper methods
The next commit changes the selections to a history of
selections. Today we directly access the selections data member. Let's
instead use an accessor method, to reduce the number of changes in
the next commit.
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context.hh b/src/context.hh index fd29b897..6a7480cc 100644 --- a/src/context.hh +++ b/src/context.hh @@ -83,8 +83,8 @@ public: InputHandler& input_handler() const; bool has_input_handler() const { return (bool)m_input_handler; } - SelectionList& selections(); - const SelectionList& selections() const; + SelectionList& selections(bool update = true); + const SelectionList& selections(bool update = true) const; Vector<String> selections_content() const; // Return potentially out of date selections |
