From d10721b35e50faba3200f0fee5fd6c9c082a372f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Mon, 15 Oct 2007 13:37:41 +0000 Subject: 23958: change target window to be the first argument of zcurses -a. --- Src/Modules/curses.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Src/Modules') diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c index 1cc711a2d..5d9364aaf 100644 --- a/Src/Modules/curses.c +++ b/Src/Modules/curses.c @@ -105,14 +105,14 @@ bin_zcurses(char *nam, char **args, Options ops, UNUSED(int func)) if (OPT_ISSET(ops,'a')) { int nlines, ncols, begin_y, begin_x; - nlines = atoi(args[0]); - ncols = atoi(args[1]); - begin_y = atoi(args[2]); - begin_x = atoi(args[3]); - targetwin = zcurses_validate_window(args[4], ZCURSES_UNUSED); + targetwin = zcurses_validate_window(args[0], ZCURSES_UNUSED); + nlines = atoi(args[1]); + ncols = atoi(args[2]); + begin_y = atoi(args[3]); + begin_x = atoi(args[4]); if (targetwin == -1) { - zerrnam(nam, "%s: %s", zcurses_strerror(zc_errno), args[4], 0); + zerrnam(nam, "%s: %s", zcurses_strerror(zc_errno), args[0], 0); return 1; } -- cgit 1.4.1