GNOME Bugzilla – Bug 75270
Cursor hidden when scrolling horizontally
Last modified: 2011-02-04 16:11:59 UTC
In testtext, type a long line (e.g 11111...) so that vertical scrolling is enabled. You will notice that the cursor is no longer visible, which is disturbing. Arno, for the GtkAda team
I meant horizontal scrolling, not vertical. Arno
Moving remaining 2.0.1 bugs to 2.0.2 milestone.
Move open bugs from milestones 2.0.[012] -- > 2.0.3, since 2.0.2 is already out.
As an additional information, the same problem also occurs when forcing a vertical scrolling (with enough line feeds), the cursor also disappears if you're on the last line. Arno
Move GtkTextView 2.0.4 bugs to 2.0.5
Moving bugs from older 2.0.x milestones to 2.0.10.
Here is a patch which makes the textview leave one pixel space at the right edge for drawing the cursor.
Created attachment 13787 [details] [review] patch
I don't know if the patch is "correct", but it certainly does the job, at least in my testings. Arno
Seems plausible to me that the problem might be this simple. In some cases, more than 1 pixel of space is needed - see _gtk_draw_insertion_cursor().
Yes, but 1 pixel will at least allow some cursor indication to be drawn. Do you think we should duplicate the computation of stem_width from gtk_draw_insertion_cursor here ?
I tried this patch with a larger cursor-aspect-ratio now and it doesn't look too bad - the cursor thickness changes much more drastically when inserting the first character in an empty line.
Looks good to me to commit.
Committed to both branches.
*** Bug 107223 has been marked as a duplicate of this bug. ***