! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Word wrap fails to wrap lines with no spacing characters
Status:
RESOLVED: MOVED
Product:
Mousepad
Component:
General

Comments

Description Stan 2019-05-09 16:45:52 CEST
Created attachment 8500 
Screenshot of horizontal scrollbar with wrapping turned on

If the word wrap setting is on, mousepad only manages to wrap lines where there are spaces or dashes. A long line of alphanumeric chars doesn't wrap, leaving the user with a horizontal scrollbar.

Contrast this with the behaviour of kwrite (for example) which hard-wraps any line and reflects that with a slightly unsettling, tongue-looking icon in the margin where line numbers go.
Comment 1 Andre Miranda editbugs 2019-05-13 19:05:05 CEST
Well, it's because it's *word* wrap, when the wrap mode is set to GTK_WRAP_CHAR it works as requested.
I'm just not sure how to handle this in the UI, Geany calls it "Line wrapping" and it appears to break on chars.
We can either just rename that options and change the wrap mode, or add a new option.
Comment 2 Theo Linkspfeifer editbugs 2019-05-13 19:24:36 CEST
This is what gedit does (default settings):

Text Wrapping
[✓] Enable text wrapping
[✓] Do not split words over two lines
Comment 3 Matthew Brush editbugs 2019-05-14 02:41:11 CEST
We could change the existing "Word Wrap" menu item for a submenu labelled "Line Wrap", with radio sub items named like "Wrap between words", "Wrap between characters" and "None" (default). Similar could be done in the preferences dialog to replace the "Wrap long lines" checkbox.
Comment 4 Theo Linkspfeifer editbugs 2020-05-22 11:40:31 CEST
*** Bug 16832 has been marked as a duplicate of this bug. ***
Comment 5 Git Bot editbugs 2020-05-24 01:31:25 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/mousepad/-/issues/29.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15372

Reported by:
Stan
Reported on: 2019-05-09
Last modified on: 2020-05-24
Duplicates (1):
  • 16832 Fix wrapping of words longer than the horizontal space

People

Assignee:
Matthew Brush
CC List:
4 users

Version

Target Milestone:
Mousepad 0.4.x

Attachments

Additional information