Blender Git Commit Log

Git Commits -> Revision 0e7c973

Revision 0e7c973 by Joshua Leung (master)
February 9, 2010, 11:18 (GMT)
Bugfix #21041: pressing tab, adds spaces depending on the end of the line

The code used to calculate the number of spaces to insert for a tab (so that indention widths were aligned to multiples of the number of spaces to use) was incorrectly assuming that the line that this was to occur on was blank, using text->curl->len (i.e. the length of the current line).

The code now uses the position of the cursor to determine how many spaces need to be added to it to move it to the next multiple of the tab width.

---

Also, added numpad enter to text-editor keymap for creating new lines for more consistency with user expectations.

Commit Details:

Full Hash: 0e7c973e06c9e3cb42a68350a60d96c3d3a82e6d
SVN Revision: 26734
Parent Commit: 945a126
Lines Changed: +6, -1

2 Modified Paths:

/source/blender/blenkernel/intern/text.c (+5, -1) (Diff)
/source/blender/editors/space_text/space_text.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021