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:
authorCampbell Barton <ideasman42@gmail.com>2010-11-29 23:42:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-29 23:42:03 +0300
commita5cac5434a9cb316b24e4b0a47c4d3f2f240dec6 (patch)
tree6c24aa5e18f967a0bf7979ad2a1d2e4c11aa8ae1 /source/blender/editors/space_info
parentc8422f0de3ef0ded0aa6886b8b2233f812b25647 (diff)
bugfix [#24969] Python Console bug: inserting a large text leads to strange caret behavior
Caret wasn't wrapping.
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/textview.c1
-rw-r--r--source/blender/editors/space_info/textview.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index 0cdace3039c..53751884bec 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -250,6 +250,7 @@ int textview_draw(TextViewContext *tvc, int draw, int mval[2], void **mouse_pick
/* shouldnt be needed */
tvc->cwidth= cdc.cwidth;
+ tvc->console_width= cdc.console_width;
tvc->iter_index= 0;
if(tvc->sel_start != tvc->sel_end) {
diff --git a/source/blender/editors/space_info/textview.h b/source/blender/editors/space_info/textview.h
index 35c44d36f27..390f9f5ed7c 100644
--- a/source/blender/editors/space_info/textview.h
+++ b/source/blender/editors/space_info/textview.h
@@ -28,6 +28,8 @@ typedef struct TextViewContext {
/* view settings */
int cwidth; /* shouldnt be needed! */
+ int console_width; /* shouldnt be needed! */
+
int winx;
int ymin, ymax;