about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-10-15 13:37:41 +0000
committerClint Adams <clint@users.sourceforge.net>2007-10-15 13:37:41 +0000
commitd10721b35e50faba3200f0fee5fd6c9c082a372f (patch)
tree384ef1bc87a951d5c1da4ec850bcb94adc0910c9 /Src
parent951c8cca0f49492aa51dfcd622bd1a0b87e422cd (diff)
downloadzsh-d10721b35e50faba3200f0fee5fd6c9c082a372f.tar.gz
zsh-d10721b35e50faba3200f0fee5fd6c9c082a372f.tar.xz
zsh-d10721b35e50faba3200f0fee5fd6c9c082a372f.zip
23958: change target window to be the first argument of zcurses -a.
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/curses.c12
1 files changed, 6 insertions, 6 deletions
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;
 	}