New newlines are not displayed when the viewable page is full

Bug #197110 reported by Tim Saylor
10
Affects Status Importance Assigned to Milestone
gedit
Expired
Medium
gtk+2.0 (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

If the last line in the viewable page is full of text but not wrapped, when enter is pressed to create a new line a scroll bar will appear reducing the viewable page size by the width of the scroll bar and causing the full line of text to wrap. When this happens, the wrapping pushes the newline down below the viewable area and it appears that the newline was not created. gedit will automatically scroll down to that line when any character is entered or the cursor is moved up and then back down, but it is not visible initially and the cursor is hidden on that line, so the user doesn't know where their text will appear when it is typed.

Reproduction steps:
1) open gedit.
2) put one character on a line and press enter as many times as you can without causing the scroll bar to appear.
3) Fill the last line with sequences of a few characters and spaces without causing the line to wrap or a scroll bar to appear.
4) Press enter at the end of this line. The line in step 3 should wrap due to the appearance of the vertical scroll bar reducing the width of the screen, and the newline created in this step should not be visible.

tsaylor@tsaylor-laptop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

tsaylor@tsaylor-laptop:~$ apt-cache policy gedit
gedit:
  Installed: 2.20.3-0ubuntu1
  Candidate: 2.20.3-0ubuntu1
  Version table:
 *** 2.20.3-0ubuntu1 0
        500 http://archive.ubuntu.com gutsy-updates/main Packages
        100 /var/lib/dpkg/status
     2.20.1-0ubuntu3 0
        500 http://archive.ubuntu.com gutsy/main Packages

ProblemType: Bug
Architecture: i386
Date: Fri Feb 29 15:23:13 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gedit
NonfreeKernelModules: nvidia
Package: gedit 2.20.3-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gedit
ProcCwd: /home/tsaylor
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux tsaylor-laptop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Tim Saylor (tim-saylor) wrote :
Revision history for this message
xtknight (xt-knight) wrote :

I can reproduce this (amd64 gutsy), but you have to do it just right. In step 3 he means fill it all the way to the right before a scrollbar appears.

Changed in gedit:
status: New → Confirmed
Revision history for this message
Tim Saylor (tim-saylor) wrote :

xtknight is correct. I would have included a sample file to reproduce it, but it's dependent on the size of your window.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=519717

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Confirmed → Triaged
Changed in gedit:
status: Unknown → New
Changed in gedit:
status: New → Confirmed
Changed in gedit:
importance: Unknown → Medium
Changed in gedit:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.