From ff6d4e84cb97a29f1f51a1335a83314792265429 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 27 Sep 2008 15:32:28 +0000 Subject: text editor changes * out of sync text dosnt automatically popup a menu anymore since it was too easy to click on it without intending to, moved this to an alert button on the header. * "_" character was acting as a delimiter, but in python its not. * renamed "File" to "Text" (so as not to confuse with blenders file menu) * added redraw_alltext function to remove many duplicate loops where every text display is redrawn. --- source/blender/blenkernel/intern/text.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source/blender/blenkernel/intern/text.c') diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index 5f1a1e63da4..ff9a6298bf4 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -577,13 +577,14 @@ static void txt_make_dirty (Text *text) /* 0:whitespace, 1:punct, 2:alphanumeric */ static short txt_char_type (char ch) { - if (ch <= ' ') return 0; - if (ch <= '/') return 1; - if (ch <= '9') return 2; - if (ch <= '@') return 1; - if (ch <= 'Z') return 2; - if (ch <= '`') return 1; - if (ch <= 'z') return 2; + if (ch <= ' ') return 0; /* 32 */ + if (ch <= '/') return 1; /* 47 */ + if (ch <= '9') return 2; /* 57 */ + if (ch <= '@') return 1; /* 64 */ + if (ch <= 'Z') return 2; /* 90 */ + if (ch == '_') return 2; /* 95, dont delimit '_' */ + if (ch <= '`') return 1; /* 96 */ + if (ch <= 'z') return 2; /* 122 */ return 1; } -- cgit v1.2.3