Created attachment 165478 [details] bad-indent.sh When a line has no spaces and exceeds the window width, an extra newline is created above it, which is wrong. See the attachment.
I can reproduce this in 24.05.2, it's specifically an issue with text wrapping when using tabulator indentation. Text wrapping works as expected when using spaces for indentation. General steps to reproduce: 1. Type a continuous sequence of letters (no spaces) longer than the window width, so it wraps to the next line. 2. Indent the line you just typed, using tabulator mode. Expected result: The indented text is displayed starting on the first line. Observed result: The line is wrapped so the text starts on the second line, with the first line only containing the tab.
I am not sure we can do much about it, we use Qt for line wrapping.
I would decide if it is solvable in Kate, or if it needs to be notified to Qt.
Enable the following setting in Appearance tab: "Disregard word boundaries for dynamic wrapping" It will fix the issue.
If you enable that setting, words will be wrapped at any given point. Hence it doesn't really solve the problem. The expected result is: - Taking into account word boundaries. - Not creating an extra newline when there is no word boundary.
Then report it to qt. We can't do anything about it. We just use the apis that are given to us.
Reported as: https://bugreports.qt.io/browse/QTBUG-130482
Qt is asking me how this is implemented in Kate, which I'm not aware of. Please join the conversation upstream, and then change status back to "resolved: upstream".