After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 396308 - line wrapping: cannot move cursor at end of line when wrapping before (
line wrapping: cannot move cursor at end of line when wrapping before (
Status: RESOLVED DUPLICATE of bug 81412
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-01-14 02:53 UTC by John Pye
Modified: 2007-10-18 05:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Document used to reproduce this problem (214 bytes, text/plain)
2007-01-14 02:54 UTC, John Pye
Details
screenshot of prefs dialog (30.08 KB, image/png)
2007-01-14 10:09 UTC, John Pye
Details

Description John Pye 2007-01-14 02:53:46 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.
Comment 1 John Pye 2007-01-14 02:54:25 UTC
Created attachment 80214 [details]
Document used to reproduce this problem
Comment 2 Paolo Borelli 2007-01-14 08:53:32 UTC
> On screen, the end of the first line is "U_p_real"

I deduce that you have line wrapping turned on, am I right?
Comment 3 Paolo Borelli 2007-01-14 09:00:09 UTC
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.
Comment 4 John Pye 2007-01-14 10:09:47 UTC
Created attachment 80224 [details]
screenshot of prefs dialog

Yes, and a few other things (see attached)
Comment 5 Owen Taylor 2007-10-18 05:23:08 UTC

*** This bug has been marked as a duplicate of 81412 ***