1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-17 23:03:29 +02:00

Fix default window check in break-pane, from Dane Jensen.

This commit is contained in:
nicm
2026-06-16 07:07:49 +00:00
parent 07c6c78897
commit 3cf96d7d15
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: cmd-break-pane.c,v 1.67 2026/06/15 21:41:39 nicm Exp $ */
/* $OpenBSD: cmd-break-pane.c,v 1.68 2026/06/16 07:07:49 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -114,7 +114,7 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
w->active = wp;
w->latest = tc;
if (name != NULL) {
if (name == NULL) {
newname = default_window_name(w);
window_set_name(w, newname, WINDOW_NAME_FORBID);
free(newname);