Merge pull request #31803 from KoBeWi/minicursor

Don't change cursor when minimap is disabled
This commit is contained in:
Rémi Verschelde 2019-08-30 20:08:21 +02:00 committed by GitHub
commit 9fc359411f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4615,7 +4615,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;
}