mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Trim "s from process names; also fix a default format in man page.
This commit is contained in:
4
names.c
4
names.c
@ -142,6 +142,10 @@ parse_window_name(const char *in)
|
|||||||
char *copy, *name, *ptr;
|
char *copy, *name, *ptr;
|
||||||
|
|
||||||
name = copy = xstrdup(in);
|
name = copy = xstrdup(in);
|
||||||
|
if (*name == '"')
|
||||||
|
name++;
|
||||||
|
name[strcspn (name, "\"")] = '\0';
|
||||||
|
|
||||||
if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
|
if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
|
||||||
name = name + (sizeof "exec ") - 1;
|
name = name + (sizeof "exec ") - 1;
|
||||||
|
|
||||||
|
2
tmux.1
2
tmux.1
@ -1858,7 +1858,7 @@ The
|
|||||||
.Fl P
|
.Fl P
|
||||||
option prints information about the new window after it has been created.
|
option prints information about the new window after it has been created.
|
||||||
By default, it uses the format
|
By default, it uses the format
|
||||||
.Ql #{session_name}:#{window_index}
|
.Ql #{session_name}:#{window_index}.#{pane_index}
|
||||||
but a different format may be specified with
|
but a different format may be specified with
|
||||||
.Fl F .
|
.Fl F .
|
||||||
.It Xo Ic capture-pane
|
.It Xo Ic capture-pane
|
||||||
|
Reference in New Issue
Block a user