diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-24 14:34:57 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-24 14:34:57 +0000 |
| commit | d813a851ac9e642eff718882702d383bae2134b2 (patch) | |
| tree | 1ccbe59640633aa5e379adb6fb1f40fd2f50696c /include/line/cursor.h | |
| parent | 75270bdeaa993c3088667d5b3604fe9259bccadc (diff) | |
add index in buffer
Diffstat (limited to 'include/line/cursor.h')
| -rw-r--r-- | include/line/cursor.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/line/cursor.h b/include/line/cursor.h index 1641a28..cdea934 100644 --- a/include/line/cursor.h +++ b/include/line/cursor.h @@ -19,9 +19,14 @@ inline int cursor_col; inline int line_end_pos; inline int line_begin_pos; +inline int window_size_row; +inline int window_size_col; + // 0-based index inline int line_buffer_index; +inline int buffer_len; + T_position get_cursor_position(); void print_override(const std::string &s); @@ -32,5 +37,9 @@ void cursor_input(char c, std::string &buffer); int get_cursor_real_pos(); +void update_window_size(); + +void update_line_end_pos(); + } |
