From 0e1493d536c564f5d75a1345fe149cfdf0daee61 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 8 Oct 2026 14:48:25 +0000 Subject: fix cursor moving left --- module-test/line_test.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module-test/line_test.cc') 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; -- cgit v1.3.1-4-g156e