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/window.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/window.hh')
| -rw-r--r-- | src/window.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.hh b/src/window.hh index 4c8a3243..f134cb71 100644 --- a/src/window.hh +++ b/src/window.hh @@ -3,7 +3,7 @@ #include <functional> -#include "utils.hh" +#include "line_and_column.hh" #include "buffer.hh" #include "display_buffer.hh" @@ -11,7 +11,7 @@ namespace Kakoune { -struct WindowCoord : LineAndColumn +struct WindowCoord : LineAndColumn<WindowCoord> { WindowCoord(int line = 0, int column = 0) : LineAndColumn(line, column) {} |
