diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-15 20:53:29 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-15 22:10:19 +0000 |
| commit | 6641583a68607ed4170eaac2e84bb4d14c83b704 (patch) | |
| tree | 0d91fde56c3533a695316c68349b59acc8112a5a /src/editor.hh | |
| parent | f83d5672f830d49e9ff9fa2f5df8144d0e362e56 (diff) | |
cleanup editor.hh, remove editor.cc...
Diffstat (limited to 'src/editor.hh')
| -rw-r--r-- | src/editor.hh | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/editor.hh b/src/editor.hh index 0e068f90..11f3ecee 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -8,20 +8,15 @@ namespace Kakoune { -namespace InputModes { class Insert; } - -class Register; - -// An Editor is a buffer mutator -// -// The Editor class provides methods to manipulate a set of selections -// and to use these selections to mutate it's buffer. +// An Editor is a to be removed class from the past class Editor : public SafeCountable { public: - typedef std::function<void (const Buffer&, SelectionList&)> Selector; + Editor(Buffer& buffer) + : m_buffer(&buffer), + m_selections(buffer, {BufferCoord{}}) + {} - Editor(Buffer& buffer); virtual ~Editor() {} Buffer& buffer() const { return *m_buffer; } |
