From 34c9b0d30fe157b52b302a71e2ef73ceba86fab0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 17 Sep 2011 14:13:33 +0000 Subject: =?UTF-8?q?LineAndColumn:=20move=20to=20it's=20own=20header=20and?= =?UTF-8?q?=20add=20operator[+-]=3D=3F?= LineAndColumn is now a template so that WindowCoords and BufferCoords cannot be added together. --- src/buffer.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer.hh') 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 #include -#include "utils.hh" +#include "line_and_column.hh" namespace Kakoune { @@ -19,7 +19,7 @@ typedef int BufferSize; typedef char BufferChar; typedef std::basic_string BufferString; -struct BufferCoord : LineAndColumn +struct BufferCoord : LineAndColumn { BufferCoord(int line = 0, int column = 0) : LineAndColumn(line, column) {} -- cgit v1.2.3