mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-30 22:14:56 +01:00
The hints kitten strips the bidi controls from the text it marks, as it does SGR codes. A paragraph the scrollback pager history ends in has its controls reset there when the history is left without lines continuing it, after lines are popped, deleted or rewrapped out of it. LineBuf serializes the bidi records of its lines. In a selection, a line without selected text writes no controls, and those of an open paragraph are reset before the newline that can be forced on it and opened again before its next text, so that they are the defaults at every hard line break.