[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel BKE_text.h blender/source/blender/blenkernel/intern text.c blender/source/blender/src drawtext.c header_text.c
Stephen Swaney
sswaney at centurytel.net
Sun Apr 10 16:01:41 CEST 2005
stiv (Stephen Swaney) 2005/04/10 16:01:41 CEST
Modified files:
blender/source/blender/blenkernel BKE_text.h
blender/source/blender/blenkernel/intern text.c
blender/source/blender/src drawtext.c header_text.c
Log:
Bugfix for disappearing hilight bug and code re-org for text editor
from Ricki Myers (themyers).
Comes with nice juicy commit msg, too!
- source/blender/blenkernel/BKE_text.h
- Removed indent_paste, uncommen, unindent_lines, comment_paste,
uncomment_paste, uncomment, set_tabs.
All these functions cut and re-added text (I felt this was
unsafe). whicch is was caused the highlight loss.
- Now the only functions are Indent, Unindent, comment, uncomment,
setcurr_tab. All these functions only take one @parm (struct Text)
-indent(struct Text *text)
copy's the selected text in a MEM_mallocN line by line added a
tab at the begginning
- Unindent(struct Text *text)
Tests if current line starts with a tab.
if TAB remove it
- comment(struct Text *text)
copy's the selected text in a MEM_mallocN and adding a # at the begginning
- Uncomment(struct Text *text)
Tests if current line starts with a #.
if # remove it
- setcurr_tab (Text *text)
Checks for Tabs pri. to any text
if : is found and not in a comment then Tabs is increased by one
if "return", "break", "pass" is found then Tabs is decreased
- blender/source/blender/src/header_text.c
Changed: txt_cut_sel(text);
indent_paste(text);
TO:
txt_order_cursors(text);
indent(text);
* no more cutting of the text
- source/blender/src/drawtext.c
set_tabs(Text *text) just calls setcurr_tab(text);
Revision Changes Path
1.10 +4 -10 blender/source/blender/blenkernel/BKE_text.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/BKE_text.h.diff?r1=1.9&r2=1.10&cvsroot=bf-blender>
1.11 +177 -111 blender/source/blender/blenkernel/intern/text.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/text.c.diff?r1=1.10&r2=1.11&cvsroot=bf-blender>
1.45 +17 -27 blender/source/blender/src/drawtext.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/drawtext.c.diff?r1=1.44&r2=1.45&cvsroot=bf-blender>
1.25 +6 -6 blender/source/blender/src/header_text.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/header_text.c.diff?r1=1.24&r2=1.25&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list