diff --git a/cmd-split-window.c b/cmd-split-window.c index cdc42cefe..5d21895c6 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -41,8 +41,8 @@ const struct cmd_entry cmd_new_pane_entry = { .args = { "bB:c:de:EfF:hIkl:Lm:p:PR:s:S:t:T:vWx:X:y:Y:Z", 0, -1, NULL }, .usage = "[-bdefhIklPvWZ] [-B border-lines] " - "[-c start-directory] [-e environment] " - "[-F format] [-l size] [-m message] [-p percentage] " + "[-c start-directory] [-e environment] " + "[-F format] [-l size] [-m message] [-p percentage] " "[-s style] [-S active-border-style] " "[-R inactive-border-style] [-T title] [-x width] [-y height] " "[-X x-position] [-Y y-position] " CMD_TARGET_PANE_USAGE " " diff --git a/screen-write.c b/screen-write.c index 45d126a6f..ba7ffd930 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1494,12 +1494,16 @@ screen_write_clearline(struct screen_write_ctx *ctx, u_int bg) struct grid_line *gl; u_int sx = screen_size_x(s); struct screen_write_citem *ci = ctx->item; + u_int flags; gl = grid_get_line(s->grid, s->grid->hsize + s->cy); if (gl->cellsize == 0 && COLOUR_DEFAULT(bg)) return; + flags = gl->flags & (GRID_LINE_START_PROMPT|GRID_LINE_START_OUTPUT); grid_view_clear(s->grid, 0, s->cy, sx, 1, bg); + gl = grid_get_line(s->grid, s->grid->hsize + s->cy); + gl->flags |= flags; screen_write_collect_clear(ctx, s->cy, 1); ci->x = 0;