diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-23 11:57:31 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-23 11:57:31 +0000 |
| commit | 75270bdeaa993c3088667d5b3604fe9259bccadc (patch) | |
| tree | 9bf74ba622fac472cdfea128e90e175cc23a20fc /include/line/cursor.h | |
| parent | 4c585130e84869acaa2812a3546468af26773674 (diff) | |
add append input for non-empty line
Diffstat (limited to 'include/line/cursor.h')
| -rw-r--r-- | include/line/cursor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/line/cursor.h b/include/line/cursor.h index 39160dc..1641a28 100644 --- a/include/line/cursor.h +++ b/include/line/cursor.h @@ -13,10 +13,14 @@ struct T_position int col; }; +// 1-based inline int cursor_row; inline int cursor_col; - inline int line_end_pos; +inline int line_begin_pos; + +// 0-based index +inline int line_buffer_index; T_position get_cursor_position(); @@ -26,5 +30,7 @@ void move_cursor(char c); void cursor_input(char c, std::string &buffer); +int get_cursor_real_pos(); + } |
