mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
unlink-window command. Also fix some u_int -> int problems.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-select-window.c,v 1.5 2007-10-26 12:29:07 nicm Exp $ */
|
||||
/* $Id: cmd-select-window.c,v 1.6 2007-10-26 16:57:32 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -34,7 +34,7 @@ void cmd_select_window_recv(void **, struct buffer *);
|
||||
void cmd_select_window_free(void *);
|
||||
|
||||
struct cmd_select_window_data {
|
||||
u_int idx;
|
||||
int idx;
|
||||
};
|
||||
|
||||
const struct cmd_entry cmd_select_window_entry = {
|
||||
@ -81,7 +81,7 @@ cmd_select_window_parse(void **ptr, int argc, char **argv, char **cause)
|
||||
if (argc != 1)
|
||||
goto usage;
|
||||
|
||||
data->idx = strtonum(argv[0], 0, UINT_MAX, &errstr);
|
||||
data->idx = strtonum(argv[0], 0, INT_MAX, &errstr);
|
||||
if (errstr != NULL) {
|
||||
xasprintf(cause, "index %s", errstr);
|
||||
goto error;
|
||||
|
Reference in New Issue
Block a user