This allows it to run for people upgrading from an ancient version
straight to the current one, and also prevents an error message in the
journal log.
(cherry picked from commit a5a3422337)
Issues:
- At the second-to-last line, "Find Next" doesn't wrap to the start.
- At the second line, "Find Previous" doesn't wrap to the end.
These issues occurred because the initial value of startLine equaled
endLine, causing the loop to terminate after one cycle.
Changes:
- Added a continueLoop flag: In wrap mode, the loop only terminates
when hasWrapped is true.
- Added an invertDirection flag to control the continueLoop flag in
no-wrap mode.
BUG: 396510
(cherry picked from commit b83680a693)
We treat
printf '\033[u'
printf '\033[<u'
the same way; both reset the cursor position but only the first
(DECRC) should.
ECMA-48 CSI commands whose first parameter byte is one of "<=>?",
are "private" commands reserved for other protocols. Specifically,
the kitty keyboard protocol defines the above sequence (CSI < u).
We already ignore private-mode commands starting with "=>?"
(except for those we already recognize).
We don't recognize any CSI command starting with "<". As a result
we accidentally treat CSI < u as a non-private sequence.
(cherry picked from commit 41a7bd8673)
Only one QPainter can be active at a time, and QScrollBar's paint event
will use its own internally. So call the base class before doing any of
our own painting. As a side effect, this means that the search markers
(originally painted first) are not overwritten by the main scroll bar,
and both those and position markers are shown.
BUG:501191
There's no where that this code is used and it adds complexity to the
decodeLine method in PlainTextDecoder. Also note that the removing
leading spaces didn't work.
When attempting to import SSH configurations, the code previously continued
execution even when the config file could not be opened. This could lead
to undefined behavior or crashes when trying to read from an invalid file
handle.
The fix adds an early return statement when file opening fails, ensuring
proper error handling and preventing potential issues downstream.
Change 'font-decoration' to 'text-decoration' in HTMLDecoder.cpp.
'font-decoration' is not a valid CSS property, while 'text-decoration'
is the correct property for adding underline to text.