From 45e4e70ec50bc0d743dadc415e0c4a0695ce63fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Fri, 10 Jul 2020 22:29:10 -0300 Subject: make clear the separation of client and buffer --- client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client.cpp') diff --git a/client.cpp b/client.cpp index 85289b6..05d07a1 100644 --- a/client.cpp +++ b/client.cpp @@ -1,3 +1,5 @@ +#include "point.cpp" + #define MAX_ARGS 16 #define pos(x, y) (x) + (y) * window_w @@ -28,7 +30,7 @@ struct Client { ArgList args; Client(const Buffer &b) : - cursor(b.storage, 0), + cursor(b), window_start(cursor), args(MAX_ARGS) {} -- cgit v1.2.3