See Steps to Reproduce below. Reproducible: Always Steps to Reproduce: 1. Open Kate or KWrite. 2. Enable dynamic word wrapping (View -> Word Wrap -> Dynamic) 3. Type in a line of characters almost as long as the window width. 4. Move the text input cursor to the end of the line. (Press "End" on the keyboard.) 5. Resize the window to decrease its width so that the text cursor no longer fits in the KTextEditor viewport, but the line is still not wrapped due to dynamic word wrapping. Actual Results: Now you can't see the cursor, even though the "word wrap" mode is designed to see everything at once, without scrolling. Expected Results: Dynamic word wrap should be triggered before the viewport width becomes smaller than length of line + width of cursor.
Side note: the width of the cursor is larger in overwrite mode (full character)
This is bug. The wrapper works as it should if you (6a) hit return at the EOL or (6b) fill another line less one compared to the one in (5). Appears to be related to resizing.
From the description I also think it's not a bug and should be closed. Not the cursor, nore some space cause a dynamic wrap, only some char. That the the cursor disapears without a horizontal scroll is a different story/bug.
I don't think this can be really altered. We let Qt wrap the text and for me this works well enough. Perhaps it improved by itself over the last X years, but I can at least always see the cursor.