Skip to content

Commit 278b0c8

Browse files
committed
kitty: Do not copy linefeed
The statusline pipe **always** contains a LF character at the end. This is needed, because the "#(cat ...)" call for the tmux statusline works in a line-oriented way and actually requires the LF to make the statusline appear. Up until recently the kitty statusline worked just fine with that LF, but it seems that now kitty displays a blank line if we add a LF to the statusline (which is not entirely unreasonably by kitty). Therefore we remove the LF from the read pipe, which we can just hardcode, because it will always be there. Fixes #65
1 parent 649f079 commit 278b0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tpipeline-kitty.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ timer_id = None
5151
def parse_stl(screen: Screen, draw_data: DrawData, stl: str, draw: bool):
5252
pos = 0
5353
length = 0
54-
while pos < len(stl):
54+
while pos < len(stl) - 1:
5555
next = stl.find("#[", pos)
5656
if next == -1:
5757
length += len(stl[pos:])

0 commit comments

Comments
 (0)