Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2012-10-14 23:57:49 +0400
committerSv. Lockal <lockalsash@gmail.com>2012-10-14 23:57:49 +0400
commit1086069fb32acab7267192b1a2995440e6f4697f (patch)
treea8cbcb230f2172f570e3cb1784472615f80a5a2d /source/blender/editors/space_info
parent36c53ec9c3450f250fe8ab9e351a53455792498c (diff)
Fix for misplaced cursor in wrapped console prompt, also fixes newline for single wrap when input line width equals console width
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/textview.c2
1 files changed, 1 insertions, 1 deletions
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 */