From 4246516c87a61eecae6b4f79ad73e8de5cd71a43 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Fri, 18 Oct 2013 15:15:59 +0200 Subject: [PATCH] android: Fix error in draw line in haltest tool This fixes small error that showed up when tab completion inserted characters before end of line. Cursor in line was not moved correctly. --- android/client/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/client/terminal.c b/android/client/terminal.c index 0421633a7..8dd3a2536 100644 --- a/android/client/terminal.c +++ b/android/client/terminal.c @@ -140,7 +140,7 @@ void terminal_draw_command_line(void) putchar('>'); /* move cursor to it's place */ - terminal_move_cursor(line_len - line_buf_ix); + terminal_move_cursor(line_buf_ix - line_len); } /* inserts string into command line at cursor position */ -- 2.11.0