diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-08 14:48:25 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-08 14:48:25 +0000 |
| commit | 0e1493d536c564f5d75a1345fe149cfdf0daee61 (patch) | |
| tree | 871b8753506bd32a20c812621476646fd9aea2ee /module-test | |
| parent | cff54544705a99fd526f75418c10fb78503f2243 (diff) | |
fix cursor moving left
Diffstat (limited to 'module-test')
| -rw-r--r-- | module-test/line_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module-test/line_test.cc b/module-test/line_test.cc index 874b5cf..ea149ff 100644 --- a/module-test/line_test.cc +++ b/module-test/line_test.cc @@ -4,6 +4,7 @@ module-test/line_test.cc \ src/line/mode.cc \ src/line/cursor.cc \ + src/line/getter.cc \ -std=c++26 -Iinclude -Ithird_party/magic_enum/include \ -O0 -ggdb3 -fno-omit-frame-pointer -fno-inline -D_GLIBCXX_ASSERTIONS \ -o module-test/line_test.out @@ -17,6 +18,8 @@ #include "line/mode.h" #include "line/cursor.h" +#include "line/getter.h" +#include "line/type.h" using namespace std; using namespace ov4; @@ -28,6 +31,7 @@ int main() T_position pos = get_cursor_position(); cursor_row = pos.row; cursor_col = pos.col; + prompt_pos = cursor_col; string s = readline(); disable_raw(); cout << "\n\n\n\n" << endl; |
