blender/source
Stephen Swaney e8a6bf6fb9 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);
2005-04-10 14:01:41 +00:00
..
blender Bugfix for disappearing hilight bug and code re-org for text editor 2005-04-10 14:01:41 +00:00
creator - got tired of str[n]casecmp not declared warnings 2005-04-02 15:36:57 +00:00
darwin big warning hunt commit 2005-03-09 19:45:59 +00:00
gameengine Clean up for Makefiles: some of the directories were being printed 2005-04-09 22:40:34 +00:00
icons - Revert to NaN makefiles 2004-01-05 00:06:11 +00:00
kernel Added #!/usr/bin/python standard script identifier to the start of SConscript files. 2004-05-16 13:07:20 +00:00
Makefile Commented out some old cruft in the Makefile which seemed to be unrelated 2005-03-25 04:25:54 +00:00
nan_compile.mk Since new transform and subsurf are default now.. no more need for the 2005-04-01 02:28:39 +00:00
nan_definitions.mk Support for SGI Prism: 2005-04-05 14:33:43 +00:00
nan_link.mk Support for SGI Prism: 2005-04-05 14:33:43 +00:00
nan_subdirs.mk Clean up for Makefiles: some of the directories were being printed 2005-04-09 22:40:34 +00:00
nan_warn.mk big warning hunt commit 2005-03-09 19:45:59 +00:00
SConscript Added #!/usr/bin/python standard script identifier to the start of SConscript files. 2004-05-16 13:07:20 +00:00