From 5c9a274c1053946dcef1ed41de89687ed4f0f73f Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sun, 15 Jul 2007 14:48:12 -0500 Subject: [PATCH] Take horizontal scrollbar into account when drawing right margin --- moo/mooedit/mootextview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moo/mooedit/mootextview.c b/moo/mooedit/mootextview.c index e3171bd8..60979c94 100644 --- a/moo/mooedit/mootextview.c +++ b/moo/mooedit/mootextview.c @@ -2129,6 +2129,8 @@ moo_text_view_draw_right_margin (GtkTextView *text_view, gdk_drawable_get_size (event->window, NULL, &y); x = view->priv->right_margin_pixel_offset + gtk_text_view_get_left_margin (text_view); + if (text_view->hadjustment) + x -= text_view->hadjustment->value; gdk_draw_rectangle (event->window, view->priv->gcs[MOO_TEXT_VIEW_COLOR_RIGHT_MARGIN], TRUE, x, 0, 1, y); }