diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-10 22:29:10 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-10 22:29:10 -0300 |
commit | 45e4e70ec50bc0d743dadc415e0c4a0695ce63fa (patch) | |
tree | 45f4cbcd6ccd013941dc990bef2aa3e760fad034 /client.cpp | |
parent | 7908b37141271f671a31f5dc7dd6341a037a4b27 (diff) | |
download | jet-45e4e70ec50bc0d743dadc415e0c4a0695ce63fa.tar.gz jet-45e4e70ec50bc0d743dadc415e0c4a0695ce63fa.zip |
make clear the separation of client and buffer
Diffstat (limited to 'client.cpp')
-rw-r--r-- | client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) {} |