Merge pull request #4017 from Paulb23/set_tab_size

Added configurable tab size in the text editor.
This commit is contained in:
Rémi Verschelde
2016-03-14 17:12:15 +01:00
4 changed files with 13 additions and 1 deletions

View File

@@ -3507,6 +3507,13 @@ void TextEdit::_push_current_op() {
}
void TextEdit::set_tab_size(const int p_size) {
ERR_FAIL_COND(p_size <= 0);
tab_size = p_size;
text.set_tab_size(p_size);
update();
}
void TextEdit::set_draw_tabs(bool p_draw) {
draw_tabs=p_draw;