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>2008-09-27 19:32:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-09-27 19:32:28 +0400
commitff6d4e84cb97a29f1f51a1335a83314792265429 (patch)
treefd84bf8bbf8a39e960a39e0b7cd96f4bac0519bc /source/blender/blenkernel/intern/text.c
parentfe5dd015956bd2a4cab9e0161daf6bac2faf5a3f (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r--source/blender/blenkernel/intern/text.c15
1 files changed, 8 insertions, 7 deletions
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;
}