mirror of
https://github.com/tmux/tmux.git
synced 2026-10-16 08:24:23 +00:00
A few additional readonly checks, GitHub issue 5736 from gmkbenjamin at
hotmail dot com.
This commit is contained in:
5
format.c
5
format.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: format.c,v 1.428 2026/10/13 10:21:58 nicm Exp $ */
|
||||
/* $OpenBSD: format.c,v 1.429 2026/10/15 07:25:07 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -4271,7 +4271,10 @@ format_create_add_item(struct format_tree *ft, struct cmdq_item *item)
|
||||
{
|
||||
struct key_event *event = cmdq_get_event(item);
|
||||
struct mouse_event *m = &event->m;
|
||||
struct client *c = cmdq_get_client(item);
|
||||
|
||||
if (c != NULL && (c->flags & CLIENT_READONLY))
|
||||
ft->flags |= FORMAT_NOJOBS;
|
||||
cmdq_merge_formats(item, ft);
|
||||
memcpy(&ft->m, m, sizeof ft->m);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user