GNOME Bugzilla – Bug 396308
line wrapping: cannot move cursor at end of line when wrapping before (
Last modified: 2007-10-18 05:23:08 UTC
Please describe the problem: With some tab-infested text as attached, the cursor is positioned incorrectly in when pressing the 'end' key in Gedit. Steps to reproduce: 1. Load the attached 'tabby-text.txt' file in gedit 2. Hit the 'end' key on your keyboard 3. Press 'del' on your keyboard 4. Hit the 'end' key again Actual results: On screen, the end of the first line is "U_p_real" But the cursor has been placed *before* the 'l', not after it as it should Expected results: Cursor should have been placed after the 'l'. Does this happen every time? Yes. Other information: This text has a number of tabs in it and this is probably what's causing the problem. In addition, this would need to be tested on a monitor of the correct resolution (in the width direct at least). I'm using 1280 x 1024 and my gedit font is Monospace 10 on Ubuntu 6.10.
Created attachment 80214 [details] Document used to reproduce this problem
> On screen, the end of the first line is "U_p_real" I deduce that you have line wrapping turned on, am I right?
Answering my own question: yes. In fact I can easily reproduce, even with gtk-demo textwidget test. It is a bug in the line wrapping and has nothing to do with tabs, put is due to the fact that the line is wrapped just before a parenthesis.
Created attachment 80224 [details] screenshot of prefs dialog Yes, and a few other things (see attached)
*** This bug has been marked as a duplicate of 81412 ***