|
@@ -4811,10 +4811,11 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const {
|
|
return CURSOR_POINTING_HAND;
|
|
return CURSOR_POINTING_HAND;
|
|
}
|
|
}
|
|
|
|
|
|
- int gutter = cache.style_normal->get_margin(MARGIN_LEFT) + cache.line_number_w + cache.breakpoint_gutter_width + cache.fold_gutter_width + cache.info_gutter_width;
|
|
|
|
- if ((completion_active && completion_rect.has_point(p_pos))) {
|
|
|
|
|
|
+ if ((completion_active && completion_rect.has_point(p_pos)) || (is_readonly() && (!is_selecting_enabled() || text.size() == 0))) {
|
|
return CURSOR_ARROW;
|
|
return CURSOR_ARROW;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ int gutter = cache.style_normal->get_margin(MARGIN_LEFT) + cache.line_number_w + cache.breakpoint_gutter_width + cache.fold_gutter_width + cache.info_gutter_width;
|
|
if (p_pos.x < gutter) {
|
|
if (p_pos.x < gutter) {
|
|
int row, col;
|
|
int row, col;
|
|
_get_mouse_pos(p_pos, row, col);
|
|
_get_mouse_pos(p_pos, row, col);
|