about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-03-02 16:13:35 +0000
committerClint Adams <clint@users.sourceforge.net>2005-03-02 16:13:35 +0000
commit4a007b41d748f1e6b7810ffe74d100981b8f08fc (patch)
treeda65d4f0ccfc97cefdae1624402e05250e98dae3
parent27c52ad0723e8a5457ce7f87091536c734e52cc6 (diff)
downloadzsh-4a007b41d748f1e6b7810ffe74d100981b8f08fc.tar.gz
zsh-4a007b41d748f1e6b7810ffe74d100981b8f08fc.tar.xz
zsh-4a007b41d748f1e6b7810ffe74d100981b8f08fc.zip
* 20911: Src/Modules/termcap.c: and set affcnt to 1 unconditionally
when we echotc a capability with arguments (which we then assume to
be the 'cm' capability, with arguments in the form <rows> <columns>.
-rw-r--r--ChangeLog7
-rw-r--r--Src/Modules/termcap.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0dab1e4bc..afb875c07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
 2005-03-02  Clint Adams  <clint@zsh.org>
 
-	* 20909: Src/Modules/termcap.c: reverse row and col
-	arguments to tgoto.
+	* 20909, 20911: Src/Modules/termcap.c: reverse row and col
+	arguments to tgoto(), and set affcnt to 1 unconditionally
+	when we echotc a capability with arguments (which we then
+	assume to be the 'cm' capability, with arguments in the
+	form <rows> <columns>.
 
 2005-03-01  Peter Stephenson  <pws@csr.com>
 
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index deae7c190..8573477c5 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -154,8 +154,9 @@ bin_echotc(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
     if (!argct)
 	tputs(t, 1, putraw);
     else {
+	/* This assumes arguments of <lines> <columns> for cap 'cm' */
 	num = (argv[1]) ? atoi(argv[1]) : atoi(*argv);
-	tputs(tgoto(t, num, atoi(*argv)), num, putraw);
+	tputs(tgoto(t, num, atoi(*argv)), 1, putraw);
     }
     return 0;
 }