Fix #27014: ctrl-A, ctrl-C, ctrl-V breaks formatting of script
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 20 Apr 2011 07:44:42 +0000 (07:44 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 20 Apr 2011 07:44:42 +0000 (07:44 +0000)
commit661d6ff7e5f5135c35029e87ce95029449b6c52c
tree109b4d16cbb4f6fe6f2d515d154c56cc9b59738a
parent66f5ac408e168acecbc39ad671103697952d314c
Fix #27014: ctrl-A, ctrl-C, ctrl-V breaks formatting of script

This bug was caused by tabs->spaces conversion. Change pate-ing logic to
paste buffer AS-IS (without any conversions).

This commit also fixes undo-ing  block deletion which contains tabs when
"Tabs as spaces" is toggled on. Also, markes shouldn't be moved after
pasteing new buffer.
source/blender/blenkernel/BKE_text.h
source/blender/blenkernel/intern/text.c