#800889 [gedit] lines not wrapping to text field width, but to window width

Package:
gedit
Source:
gedit
Description:
popular text editor for the GNOME desktop environment
Submitter:
Philipp Klaus Krause
Date:
2015-10-04 16:18:06 UTC
Severity:
normal
#800889#5
Date:
2015-10-04 16:07:08 UTC
From:
To:
--- Please enter the report below this line. ---

When I have long lines in a text file, gedit wraps the lines, preferybly
at word boundaries. However, the width is not calculated as the width of
the visible text area, but as the width of the text area with the
vertical scroll bar.
This means that for lines that are just one or two characters wider than
the text area, they are not wrapped, and the last one or two characters
are not visible. Similarly for lines where some word is just at the edge.

The attached sample file swhoiws the problem on my system, as the last }
in the file is placed on the second line, but not visible due to the
vertical scroll bar.

Debian Release: stretch/sid
  500 unstable        ftp.de.debian.org
  500 testing         ftp.de.debian.org
    1 experimental    ftp.de.debian.org
--- Package information. ---
Depends                           (Version) | Installed
===========================================-+-==============
python3:any                   (>= 3.3.2-2~) |
libatk1.0-0                     (>= 1.12.4) | 2.16.0-2
libc6                             (>= 2.14) |
libcairo-gobject2               (>= 1.10.0) |
libcairo2                        (>= 1.2.4) |
libenchant1c2a                   (>= 1.6.0) |
libgdk-pixbuf2.0-0              (>= 2.22.0) |
libgirepository-1.0-1            (>= 0.9.3) |
libglib2.0-0                   (>= 2.39.90) |
libgtk-3-0                      (>= 3.11.7) |
libgtksourceview-3.0-1         (>= 3.11.90) |
libpango-1.0-0                  (>= 1.14.0) |
libpangocairo-1.0-0             (>= 1.14.0) |
libpeas-1.0-0                    (>= 1.1.0) |
libx11-6                                    |
libxml2                          (>= 2.7.4) |
gedit-common                      (>= 3.12) |
gedit-common                      (<< 3.13) |
gnome-icon-theme-symbolic                   |
gsettings-desktop-schemas                   |
python3-gi                         (>= 3.0) |
python3-gi-cairo                   (>= 3.0) |
gir1.2-peas-1.0                             |
iso-codes                                   |


Recommends      (Version) | Installed
=========================-+-===========
zenity                    | 3.16.3-1
yelp                      | 3.16.1-1


Suggests           (Version) | Installed
============================-+-===========
gedit-plugins                |
--- Output from package bug script --- Active plugins: - 'spell' - 'time' - 'modelines' - 'docinfo' - 'filebrowser' No plugin installed in /home/philipp. Module versions: - glib 2.44.1 - gtk+ 3.16.6 - gtksourceview - pygobject - enchant - iso-codes 3.61
#800889#10
Date:
2015-10-04 16:14:12 UTC
From:
To:
I just tried 3.18.0 from current debian testing, and see the same
problem there.

Philipp