summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-29 08:46:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-29 08:46:21 +0000
commit59dd1491c64886492f2fd20e6929a890c844034a (patch)
tree8d883ea2c4b1a8796b55f92c92c4f79a448c917f /Src/Modules
parentdd3a749ce985891e9fb0b57f0e2c139aea12d3e6 (diff)
downloadzsh-59dd1491c64886492f2fd20e6929a890c844034a.tar.gz
zsh-59dd1491c64886492f2fd20e6929a890c844034a.tar.xz
zsh-59dd1491c64886492f2fd20e6929a890c844034a.zip
users/13295, tweaked: dont reset line numbers when parsing strings, sometimes
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/parameter.c2
-rw-r--r--Src/Modules/zpty.c2
-rw-r--r--Src/Modules/zutil.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 4e1205ec8..e3fb909ea 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -279,7 +279,7 @@ setfunction(char *name, char *val, int dis)
 
     val = metafy(val, strlen(val), META_REALLOC);
 
-    prog = parse_string(val);
+    prog = parse_string(val, 1);
 
     if (!prog || prog == &dummy_eprog) {
 	zwarn("invalid function definition", value);
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index 4076a5b7e..6c332b270 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -299,7 +299,7 @@ newptycmd(char *nam, char *pname, char **args, int echo, int nblock)
     if (!ineval)
 	scriptname = "(zpty)";
 
-    prog = parse_string(zjoin(args, ' ', 1));
+    prog = parse_string(zjoin(args, ' ', 1), 0);
     if (!prog) {
 	errflag = 0;
 	scriptname = oscriptname;
diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c
index 76056308f..698b7e3bd 100644
--- a/Src/Modules/zutil.c
+++ b/Src/Modules/zutil.c
@@ -251,7 +251,7 @@ setstypat(Style s, char *pat, Patprog prog, char **vals, int eval)
     if (eval) {
 	int ef = errflag;
 
-	eprog = parse_string(zjoin(vals, ' ', 1));
+	eprog = parse_string(zjoin(vals, ' ', 1), 0);
 	errflag = ef;
 
 	if (!eprog)