Don't change cursor when minimap is disabled

This commit is contained in:
Tomasz Chabora 2019-08-30 19:13:53 +02:00
parent ba854bbc7b
commit b0805a1b53
1 changed files with 1 additions and 1 deletions

View File

@ -4613,7 +4613,7 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const {
return CURSOR_ARROW;
} else {
int xmargin_end = get_size().width - cache.style_normal->get_margin(MARGIN_RIGHT);
if (p_pos.x > xmargin_end - minimap_width && p_pos.x <= xmargin_end) {
if (draw_minimap && p_pos.x > xmargin_end - minimap_width && p_pos.x <= xmargin_end) {
return CURSOR_ARROW;
}