GTK_WRAP_CHAR with long sequence of spaces
@juhp
Submitted by Jens Petersen Assigned to Behdad Esfahbod
Link to original bug (#131625)
Description
When a line of input contains a long sequences of space characters (compared to the width of the window), character wrapping behaviour seems quite unnatural.
-
On a blank line entering a long sequence of spaces causes an horizontal scrollbar after the cursor has moved to the right edge of the GtkTextView.
-
On a line containing some non-space characters already, adding a long continuous sequence of space characters causes the character just before the first of the spaces to be wrapped onto a new line when more spaces than fit within the width have of the current line have been added. Then when more characters are added to fill up with line, it continues to behave like case (1).
Ie it changes from
|word_______________________ | `_' == space char | | | | | |
to
|wor | |d_____________________________ | | | | | | |
and then this
|or | |__________________________________| | | | | | *********************************| <- scrollbar
In GTK_WRAP_CHAR mode, I wouldn't expect the horizontal scrollbar ever to appear.
Version: 1.4.x