|
@@ -681,6 +681,13 @@ void TextEdit::_notification(int p_what) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (line_length_guideline) {
|
|
|
|
+ int x = xmargin_beg + cache.font->get_char_size('0').width * line_length_guideline_col - cursor.x_ofs;
|
|
|
|
+ if (x > xmargin_beg && x < xmargin_end) {
|
|
|
|
+ VisualServer::get_singleton()->canvas_item_add_line(ci, Point2(x, 0), Point2(x, size.height), cache.line_length_guideline_color);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
int brace_open_match_line = -1;
|
|
int brace_open_match_line = -1;
|
|
int brace_open_match_column = -1;
|
|
int brace_open_match_column = -1;
|
|
bool brace_open_matching = false;
|
|
bool brace_open_matching = false;
|
|
@@ -1339,13 +1346,6 @@ void TextEdit::_notification(int p_what) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (line_length_guideline) {
|
|
|
|
- int x = xmargin_beg + cache.font->get_char_size('0').width * line_length_guideline_col - cursor.x_ofs;
|
|
|
|
- if (x > xmargin_beg && x < xmargin_end) {
|
|
|
|
- VisualServer::get_singleton()->canvas_item_add_line(ci, Point2(x, 0), Point2(x, size.height), cache.line_length_guideline_color);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
bool completion_below = false;
|
|
bool completion_below = false;
|
|
if (completion_active) {
|
|
if (completion_active) {
|
|
// code completion box
|
|
// code completion box
|