forked from AuroraMiddleware/gtk
Merge branch 'wip/chergert/textview-fix-selection' into 'master'
textview: fix off-by-one in y_range invalidation See merge request GNOME/gtk!1126
This commit is contained in:
commit
d9f6f26cd8
@ -681,7 +681,7 @@ gtk_text_line_display_cache_invalidate_y_range (GtkTextLineDisplayCache *cache,
|
||||
cache_y = _gtk_text_btree_find_line_top (btree, display->line, layout);
|
||||
cache_height = display->height;
|
||||
|
||||
if (cache_y + cache_height > y && cache_y < y + old_height)
|
||||
if (cache_y + cache_height >= y && cache_y <= y + old_height)
|
||||
{
|
||||
gtk_text_line_display_cache_invalidate_display (cache, display, cursors_only);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user