diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-09-17 14:13:33 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-09-17 14:13:33 +0000 |
| commit | 34c9b0d30fe157b52b302a71e2ef73ceba86fab0 (patch) | |
| tree | 313788609d3de768d2b5e5bab86ea2861cf64688 /src/buffer.hh | |
| parent | 49fce28dec18cb5b0af3e169e3b2ef31b99a6aa6 (diff) | |
LineAndColumn: move to it's own header and add operator[+-]=?
LineAndColumn is now a template so that WindowCoords and BufferCoords
cannot be added together.
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 67b374e1..a45c68ea 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -6,7 +6,7 @@ #include <list> #include <memory> -#include "utils.hh" +#include "line_and_column.hh" namespace Kakoune { @@ -19,7 +19,7 @@ typedef int BufferSize; typedef char BufferChar; typedef std::basic_string<BufferChar> BufferString; -struct BufferCoord : LineAndColumn +struct BufferCoord : LineAndColumn<BufferCoord> { BufferCoord(int line = 0, int column = 0) : LineAndColumn(line, column) {} |
