Skip to content

Commit 381c00a

Browse files
committed
Merge branch 'obsd-master'
2 parents a5545db + 5aadee6 commit 381c00a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

screen-write.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc)
21102110

21112111
/*
21122112
* Check if we need to combine characters. This could be zero width
2113-
* (zet above), a modifier character (with an existing Unicode
2113+
* (set above), a modifier character (with an existing Unicode
21142114
* character) or a previous ZWJ.
21152115
*/
21162116
if (!zero_width) {
@@ -2122,6 +2122,10 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc)
21222122
return (0);
21232123
}
21242124

2125+
/* Check if this combined character would be too long. */
2126+
if (last.data.size + ud->size > sizeof last.data.data)
2127+
return (0);
2128+
21252129
/* Combining; flush any pending output. */
21262130
screen_write_collect_flush(ctx, 0, __func__);
21272131

window-copy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,7 @@ static const struct {
27192719
},
27202720
{ .command = "next-prompt",
27212721
.minargs = 0,
2722-
.maxargs = 0,
2722+
.maxargs = 1,
27232723
.clear = WINDOW_COPY_CMD_CLEAR_ALWAYS,
27242724
.f = window_copy_cmd_next_prompt
27252725
},

window.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ window_destroy(struct window *w)
338338
{
339339
log_debug("window @%u destroyed (%d references)", w->id, w->references);
340340

341+
window_unzoom(w);
341342
RB_REMOVE(windows, &windows, w);
342343

343344
if (w->layout_root != NULL)

0 commit comments

Comments
 (0)