summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index fd9b062..4c15703 100644
--- a/buffer.h
+++ b/buffer.h
@@ -34,9 +34,18 @@ class Buffer{
};
Cursorpos cursor={0,0};
+ struct Screenpos{
+ i64 y,x;
+ };
+
vector<ScreenLine> layoutLine(const string &line,i64 linenum,i64 width);
void performInitialLayout(i64 width,i64 height);
void renewLayout(i64 topLine,i64 topPart,i64 width,i64 height);
+ void relayoutScreen();
+
+ Screenpos findCursorInScreen() const;
+
+ void handleCommand(const Command &cmd);
public:
string filename;