diff options
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |