diff options
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(); + } |
