From 1086069fb32acab7267192b1a2995440e6f4697f Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Sun, 14 Oct 2012 19:57:49 +0000 Subject: Fix for misplaced cursor in wrapped console prompt, also fixes newline for single wrap when input line width equals console width --- source/blender/editors/space_info/textview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_info') diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c index 4ba196276da..cfab2542756 100644 --- a/source/blender/editors/space_info/textview.c +++ b/source/blender/editors/space_info/textview.c @@ -128,7 +128,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str return 1; } - if (str_len > cdc->console_width) { /* wrap? */ + if (tot_lines > 1) { /* wrap? */ const int initial_offset = ((tot_lines - 1) * cdc->console_width); const char *line_stride = str + initial_offset; /* advance to the last line and draw it first */ -- cgit v1.2.3