Text Editor: Add an option "Tabs as Spaces".
So now tab is not ALWAYS converted to spaces. This is stored by text datablock (what allows to do nice things in the future, as automatic check for the indentation type of the file). Ideally we should redraw the other Text Editor windows after changing that (in case the same file is opened and the Property panel is also open). Not sure how to do that though. I'm using TABSTOSPACES as the DEFINE flag because TABSASSPACES sounds too ugly. (also fix for interface divisor bug)
This commit is contained in:
@@ -1800,7 +1800,7 @@ static void ui_draw_but_HSV_v(uiBut *but, rcti *rect)
|
||||
static void ui_draw_separator(uiBut *but, rcti *rect, uiWidgetColors *wcol)
|
||||
{
|
||||
int y = rect->ymin + (rect->ymax - rect->ymin)/2 - 1;
|
||||
unsigned char col[3];
|
||||
unsigned char col[4];
|
||||
|
||||
col[0] = wcol->text[0];
|
||||
col[1] = wcol->text[1];
|
||||
|
||||
Reference in New Issue
Block a user