From 83588b7ee9349a941b91294fa83fe6e207883ab6 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 15:04:33 +0000 Subject: fix uninitialized fd[] --- src/line/cursor.cc | 5 ----- src/line/input.cc | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/line') diff --git a/src/line/cursor.cc b/src/line/cursor.cc index 1baa33c..16665a5 100644 --- a/src/line/cursor.cc +++ b/src/line/cursor.cc @@ -18,7 +18,6 @@ namespace ov4 void T_line_editor::print_override(const std::string &s) { - check_window_update(); // save current cursor position // print("\x1b[s"); fflush(stdout); @@ -42,7 +41,6 @@ void T_line_editor::print_override(const std::string &s) void T_line_editor::move_cursor(char c) { - check_window_update(); switch (c) { @@ -65,7 +63,6 @@ void T_line_editor::move_cursor(char c) void T_line_editor::cursor_input_char(char c) { - check_window_update(); // if receives any input // it should move to the latest history @@ -106,7 +103,6 @@ void T_line_editor::update_window_size() void T_line_editor::move_cursor(T_cursor_movement_direction d) { - check_window_update(); switch (d) { @@ -170,7 +166,6 @@ void T_line_editor::move_cursor(T_cursor_movement_direction d) void T_line_editor::switch_history(T_cursor_movement_direction d) { - check_window_update(); switch (d) { diff --git a/src/line/input.cc b/src/line/input.cc index 1e7ca38..0a01760 100644 --- a/src/line/input.cc +++ b/src/line/input.cc @@ -34,7 +34,7 @@ string T_line_editor::readline() if (src == self_pipe_fd[0]) { check_window_update(); - break; + continue; } if (iscntrl(c)) { -- cgit v1.3.1-4-g156e