https://bugs.kde.org/show_bug.cgi?id=496572

            Bug ID: 496572
           Summary: Dynamic Word Wrap inserts line breaks while Static
                    Word Wrap doesn't
    Classification: Applications
           Product: kate
           Version: 24.08.3
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: daigen....@daigennki.net
  Target Milestone: ---

SUMMARY
I want to constrain the length of long lines without inserting line breaks into
the actual text file. I've been told that "Dynamic Word Wrap" should do what I
want. However, when "Dynamic Word Wrap" is enabled, a line break gets inserted
at the configured fixed column, instead of only wrapping the line in the
editor. This happens whether it's enabled with "View -> Word Wrap -> Dynamic
Word Wrap", or with "Configure KWrite -> Editing -> General -> Word Wrap ->
Wrap words at fixed column".

Also, enabling "View -> Word Wrap -> Static Word Wrap" stops the line breaks
from being inserted and makes Dynamic Word Wrap do what I want it to do. I
assume enabling Static Word Wrap should actually make line breaks inserted,
while having it disabled with Dynamic Word Wrap enabled only wraps the line in
the editor view. In addition, when Dynamic Word Wrap is turned off, Static Word
Wrap doesn't seem to do anything.

STEPS TO REPRODUCE
1.  Enable "Dynamic Word Wrap" or "Wrap words at fixed column".
2.  Type in a sentence longer than the configured column.

OBSERVED RESULT
A line break gets inserted at the configured column.

EXPECTED RESULT
A line break shouldn't get inserted, and the line should only be wrapped in the
editor view.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
This issue was originally brought up in this discussion:
https://discuss.kde.org/t/static-word-wrap-gets-disabled-whenever-kwrite-is-re-opened/25831

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to