summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-15 09:27:52 +0000
committernicm <nicm>2016-10-15 09:27:52 +0000
commite7990375cb130853505fb2ff3a2fa801537119e5 (patch)
tree501a6ff0a8c03edb935aecd5ebeb95fc07c804f6 /window.c
parent3f138dc40c37ddee021b92e5d29676ed96b6cab8 (diff)
Give window_create and window_create1 better names.
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/window.c b/window.c
index a65109bc..b217f48b 100644
--- a/window.c
+++ b/window.c
@@ -293,7 +293,7 @@ window_update_activity(struct window *w)
}
struct window *
-window_create1(u_int sx, u_int sy)
+window_create(u_int sx, u_int sy)
{
struct window *w;
@@ -323,19 +323,19 @@ window_create1(u_int sx, u_int sy)
}
struct window *
-window_create(const char *name, int argc, char **argv, const char *path,
+window_create_spawn(const char *name, int argc, char **argv, const char *path,
const char *shell, const char *cwd, struct environ *env,
struct termios *tio, u_int sx, u_int sy, u_int hlimit, char **cause)
{
struct window *w;
struct window_pane *wp;
- w = window_create1(sx, sy);
+ w = window_create(sx, sy);
wp = window_add_pane(w, NULL, hlimit);
layout_init(w, wp);
- if (window_pane_spawn(wp, argc, argv, path, shell, cwd, env, tio,
- cause) != 0) {
+ if (window_pane_spawn(wp, argc, argv, path, shell, cwd,
+ env, tio, cause) != 0) {
window_destroy(w);
return (NULL);
}